adplus-dvertising
frame-decoration

Question

Which of the following function declaration is illegal?

a.

double func(); int main(){} double func(){}

b.

double func(){}; int main(){}

c.

int main() { double func(); } double func(){//statements}

d.

None of the mentioned

Posted under Functions C Programming

Answer: (d).None of the mentioned

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. Which of the following function declaration is illegal?

Similar Questions

Discover Related MCQs

Q. What is the problem in the following declarations?

int func(int);
double func(int);
int func(float);

Q. What is the default return type if it is not specified in function definition?

Q. functions can return structure in c?

Q. functions can return enumeration constants in c?

Q. Functions in C are ALWAYS:

Q. Global variables are:

Q. Property of external variable to be accessed by any source file is called by C90 standard as

Q. What is the scope of an external variable?

Q. What is the scope of a function?

Q. Array sizes are optional during array declaration by using ______ keyword.

Q. Which of following is not accepted in C?

Q. Which of the following cannot be static in C?

Q. Functions have static qualifier for its declaration by default.

Q. Is initialisation mandatory for local static variables?

Q. Assignment statements assigning value to local static variables are executed only once

Q. What is the format identifier for “static a = 20.5;”?

Q. Which of the following is true for static variable?

Q. register keyword mandates compiler to place it in machine register.

Q. Register storage class can be specified to global variables

Q. Which among the following is wrong for “register int a;” ?