CSE MCQs :: C-MCQs
-
What is the output of this C code?
double foo();
int main()
{
foo();
return 0;
}
foo()
{
printf("2 ");
return 2;
} - functions can return structure in c?
- functions can return enumeration constants in c?
-
What is the output of this C code?
int x = 5;
void main()
{
int x = 3;
printf("%d", x);
{
x = 4;
}
printf("%d", x);
} -
What is the output of this C code?
int x = 5;
void main()
{
int x = 3;
printf("%d", x);
{
int x = 4;
}
printf("%d", x);
} - Functions in C are ALWAYS:
-
Which of the following are an external variable?
int func (int a)
{
int b;
return b;
}
int main()
{
int c;
func (c);
}
int d; -
What will be the output?
int main()
{
printf("%d", d++);
}
int d = 10; -
What will be the output?
double var = 8;
int main()
{
int var = 5;
printf("%d", var);
}