Create an account to track your scores
and create your own practice tests:
Test: Computer Science
1. | What is the difference between declaring a function as void and declaring it as int? |
An int function needs to declare an integer variable inside the function and a void function doesn't.
A void declaration does not expect an output to that function, whereas an int function declarations expects an intger value as the output to the function.
There is no difference.
A void function has no input and an int function has at least one integer input.
A void function can have any return type whereas an int function can only have one return type.
Ping
Certified Tutor
Certified Tutor
The University of Texas at Dallas, Bachelor of Science, Computer Science. University of North Texas, Master of Arts, Education.
Amit
Certified Tutor
Certified Tutor
The University of Texas at Austin, Bachelor of Science, Mathematics. The University of Texas at Dallas, Master of Science, Co...
Computer Science Tutors in Top Cities:
Atlanta Computer Science Tutors, Austin Computer Science Tutors, Boston Computer Science Tutors, Chicago Computer Science Tutors, Dallas Fort Worth Computer Science Tutors, Denver Computer Science Tutors, Houston Computer Science Tutors, Kansas City Computer Science Tutors, Los Angeles Computer Science Tutors, Miami Computer Science Tutors, New York City Computer Science Tutors, Philadelphia Computer Science Tutors, Phoenix Computer Science Tutors, San Diego Computer Science Tutors, San Francisco-Bay Area Computer Science Tutors, Seattle Computer Science Tutors, St. Louis Computer Science Tutors, Tucson Computer Science Tutors, Washington DC Computer Science Tutors
Popular Courses & Classes
MCAT Courses & Classes in New York City, GRE Courses & Classes in San Francisco-Bay Area, MCAT Courses & Classes in Denver, SSAT Courses & Classes in Boston, GMAT Courses & Classes in Philadelphia, ISEE Courses & Classes in Denver, GMAT Courses & Classes in Dallas Fort Worth, SSAT Courses & Classes in Philadelphia, SSAT Courses & Classes in Los Angeles, SAT Courses & Classes in San Francisco-Bay Area
