What is the default return value of a C function if not specified explicitly?
a) -1
b) 0
c) 1
d) None of these
Explanation: By default, a return 0; is added at the end of any function if not explicitly specified.
It is necessary to declare the type of a function in the calling program if the function
a) Is not defined in the same file
b) Returns a non-integer value
c) Both A and B
d) None of the above
Uses of function
a) Helps to avoid repeating a set of statements many times
b) Enhances the logical clarity of the program
c) Helps to avoid repeated programming across programs
d) Makes the debugging task easier
e) All of the above
It is necessary to declare the type of a function in the calling program if the function
a) Return an integer
b) Returns a non-integer value
c) is not defined in the same file
d) None of these
The function that actually created from a call to a template
function is called
a) Generated
b) Inherited
c) Spawned
d) Declassified
The function fprintf is used in a program.
a) When too many printf calls have been alrady used in the program
b) In place of printf, since printf uses more memory
c) When output i to be printed on to a file
d) All of above