CameraIcon
CameraIcon
SearchIcon
MyQuestionIcon
MyQuestionIcon
1
You visited us 1 times! Enjoying our articles? Unlock Full Access!
Question

What is the output of the following 'C' program?
main()
{
int i=2;
printf("%d%d,++i,++i);
}

A
3 4
No worries! We‘ve got your back. Try BYJU‘S free classes today!
B
4 3
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
C
4 4
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
Output may vary from compiler to compiler
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution

The correct option is B 4 3

The output of the following 'C' program.
main()
{
int i=2;
printf("%d%d,++i,++i);
}

Output:-

4 3

In this output the value of i is increase.



flag
Suggest Corrections
thumbs-up
0
Join BYJU'S Learning Program
similar_icon
Related Videos
thumbnail
lock
Linear Inequations
MATHEMATICS
Watch in App
Join BYJU'S Learning Program
CrossIcon