Which of the following statements related to 'C' language is/are FALSE? (i) A function must be declared globally in a C program to tell the compiler about the function name, function parameters, and return type. (ii) The parameter list must not differ in function calling and function declaration.
Which of the following statements related to 'C' language is/are FALSE? (i) A function must be declared globally in a C program to tell the compiler about the function name, function parameters, and return type. (ii) The parameter list must not differ in function calling and function declaration. Correct Answer Neither (i) or (ii)
Key PointsOption 1: A function must be declared globally in a C program to tell the compiler about the function name, function parameters, and return type.
True, Function declaration A function must be declared globally in a c program to tell the compiler about the function name, function parameters, and return type. Function call Function can be called from anywhere in the program. Function definition It contains the actual statements which are to be executed.
Option 2:The parameter list must not differ in function calling and function declaration.
True, The number of parameters in a function must be the same as the number of parameters in the function definition and function call.
Hence the correct answer is Neither (i) or (ii).