Single Choice
Easy
QWhat is the output of the following C code?
#include
int main() {
int x = 5;
printf("%d", x++);
return 0;
}
ID: #7198
Fundamentals of C Language
358 views
Question Info
#7198Q ID
EasyDifficulty
Fundamentals of C LanguageTopic
Your Answer
Choose the Best Option
Click any option to instantly check if you're correct.
Correct Answer
Explanation
Answer: A
Explanation: The value of x is first printed using printf, and then incremented by the ++ operator. Therefore, the output will be 5.
Continue Practice
Share
Share This Question
Challenge a friend or share with your study group.
More from This Topic