C Programming Multiple Choice Questions And Answers
Are you preparing for the next job interviews? If yes, trust me this post will help you also we'll suggest you check out a big collection for Programming Full Forms that may help you in your interview:
List of Programming Full Forms
#include
int main()
{
printf("%p", main);
getchar();
return 0;
}
- No Output
- Address of main function
- Compilation error
- Runtime Error
#include
int main()
{
int i = 0, j = 0;
if (i && (j = i + 10))
//do something
;
}
- Output : 10
- Output : 0
- Output : 11
- Error
int main()
{
int a = 0;
while(a++ < 5)
printf("TutorialLinks.com");
return 0;
}
- 4 times
- 5 times
- 3 times
- 6 times
#include
struct emp
{
char name[20];
int age;
};
int main()
{
emp int xx;
int a;
printf("%d\n", &a);
return 0;
}
- Error: in declaration
- No error
- Error: printf
- Error: in emp int xx;
#include
int main()
{
int x = 1, y = 0, z = 3;
x > y ? printf("%d", z) : return z;
}
- Output : 3
- Runtime error
- Compile time error
- Output : 1