A
Q. What is the output of the following code?
Code:int a = 10;
if (a = 0)
printf("Zero");
else
printf("Non-zero");
Here, you will find a collection of MCQ questions on C Programming. Go through these questions to enhance your preparation for upcoming examinations and interviews.
To check the correct answer, simply click the View Answer button provided for each question.
Have your own questions to contribute? Click the button below to share your MCQs with others!
+ Add QuestionA
int a = 10;
if (a = 0)
printf("Zero");
else
printf("Non-zero");
A
A
int x = 10;
printf("%d", x++);
A
int arr[] = {1,2,3};
printf("%d", *(arr+1));
A
A
A
int a = 1;
if (a)
printf("True");
else
printf("False");
A
A
A
int i = 0;
while (i < 3)
{
printf("%d", i);
i++;
}
If you want to share an MCQ question in this category, it's a great idea! It will be helpful for many other students using this website.
Share Your MCQ