CSE MCQs :: C-MCQs
-
What is the output of this C code?
void m()
{
printf("hi");
}
void main()
{
m();
} -
What is the output of this C code?
void m();
void n()
{
m();
}
void main()
{
void m()
{
printf("hi");
}
} -
What is the output of this C code?
void main()
{
m();
void m()
{
printf("hi");
}
}
-
What is the output of this C code?
void main()
{
m();
}
void m()
{
printf("hi");
m();
} -
What is the output of this C code?
void main()
{
static int x = 3;
x++;
if (x <= 5)
{
printf("hi");
main();
}
} - Which of the following is a correct format for declaration of function?
- Which of the following function declaration is illegal?
- Which function definition will run correctly?
- Can we use a function as a parameter of another function? [ Eg: void wow(int func()) ]
- The value obtained in the function is given back to main by using ________ keyword?