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()
{
int i;
i = 1, 2, 3;
printf("i = %d\n", i);
getchar();
return 0;
}
- Output: 1
- Output: 2
- Output: 3
- Output: 123
#include
int main()
{
int i = -3;
int k = i % 2;
printf("%d\n", k);
}
- Output: 3
- Output: -1
- Output: 1
- compiler error
#include
void main()
{
int x = 5.3 % 2;
printf("Value of x is %d", x);
}
- Compile time error
- Value of x is 2
- Value of x is -2
- Value of x is 3