What is the output of these ( a=5; printf("℅d℅d℅d",a++,a++,a++) please elaborate | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the output of these ( a=5; printf("℅d℅d℅d",a++,a++,a++) please elaborate

please elaborate ha this is a gate quwlestion and didnt understand okkkkkk

23rd Aug 2017, 8:11 AM
Sagar Dhapke
Sagar Dhapke - avatar
2 Answers
+ 11
answer is 567. This is because the first a++, prints a=5 then increments it. So a is now 6, is printed then incremented by the second a++, and same thing with third one.
23rd Aug 2017, 8:16 AM
🔭Pierre Chary🐍
🔭Pierre Chary🐍 - avatar
0
may be 8
23rd Aug 2017, 8:13 AM
Sagar Dhapke
Sagar Dhapke - avatar