88. Which of the following cannot be a structure member?
Anonymous Quiz
20%
Another structure
34%
Function
20%
Array
26%
None of the mentioned
89. Which of the following is a correct format for declaration of function?
Anonymous Quiz
51%
return-type function-name(argument type);
28%
return-type function-name(argument type){}
5%
return-type (argument type)function-name;
16%
all of the mentioned
90. Can we use a function as a parameter of another function? [Eg: void fun1(int fun2())].
Anonymous Quiz
46%
Yes, and we can use the function value conveniently
31%
Yes, but we call the function again to get the value, not as convenient as in using variable
19%
No, C does not support it
3%
This case is compiler dependent
👍1
91. The value obtained in the function is given back to main by using ________ keyword.
Anonymous Quiz
81%
return
13%
static
3%
new
4%
back
92. Which of the following is not possible in C?
Anonymous Quiz
19%
Array of function pointer
19%
Returning a function pointer
40%
Comparison of function pointer
21%
None of the mentioned
94. What will be the output of the following C code?
# include <stdio.h>
int *f();
int main()
{
int *p = f();
printf("%d\n", *p);
}
int *f()
{
int j = 10;
return &j;
}
96. Find the output:
int a=10, b=5;
a-=b+1; printf("%d",a);
int a=10, b=5;
a-=b+1; printf("%d",a);
Anonymous Quiz
36%
6
21%
-6
33%
4
10%
None of the above
❤1
97. which of the following is correct declaration to work with ptr[0]='H'
Anonymous Quiz
25%
char *ptr = "hello!";
34%
char ptr[] = "hello!";
24%
both of the above
16%
none of the mentioned
98. What will be the output of the following C code?
# include <stdio.h>
void f();
int main()
{
#define foo(x, y) x / y + x
f();
}
void f()
{
printf("%d\n", foo(-3, 3));
}
Forwarded from Ankitweblogic.com
99. What will be the output of the following C code?
# include <stdio.h>
void f();
void main()
{
#define max 10
f();
}
void f()
{
printf("%d\n", max * 10);
}
❤1
100. What will be the output of the following C code?
#include <stdio.h>
#define A 1 + 2
#define B 3 + 4
void main()
{
int var = A * B;
printf("%d\n", var);
}
💯 MCQ Posted,
you can give your suggestion what else you want in this channel
you can give your suggestion what else you want in this channel