A
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
A
A
fp = fopen("Random.txt", "a");
A
#include <stdio.h>
int main()
{
int y = 10000;
int y = 34;
printf("Hello World! %d
", y);
return 0;
}
A
#include <stdio.h>
int main()
{
int main = 3;
printf("%d", main);
return 0;
}
A
#include <stdio.h>
int main()
{
signed char chr;
chr = 128;
printf("%d
", chr);
return 0;
}
A
#include <stdio.h>
union Sti
{
int nu;
char m;
};
int main()
{
union Sti s;
printf("%d", sizeof(s));
return 0;
}
A
#include <stdio.h>
enum birds {SPARROW, PEACOCK, PARROT};
enum animals {TIGER = 8, LION, RABBIT, ZEBRA};
int main()
{
enum birds m = TIGER;
int k;
k = m;
printf("%d
", k);
return 0;
}
A
#include <stdio.h>
int const print()
{
printf(" example.com");
return 0;
}
void main()
{
print();
}
A
#include <stdio.h>
int main()
{
for (int k = 0; k < 10; k++);
return 0;
}
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