#include<stdio.h>
int main(){
int a=5;
printf("%d %d %d",a++,a++,++a);
return 0;
}..please explain me output 7 6 8..Thnx in advance
Answer / abhijeet ankush gate rank 416
correct output is 766
explaination
printf function is right associative and starts reading from
right which is ++a.
in ++a value is 1st incremented and then printed
in a++ value is 1st printed and then incremented...
| Is This Answer Correct ? | 10 Yes | 11 No |
iu6589u
what is the need to take testing as a carrier?
How to work Air cooled and water cooled chiller?
What are annotations? What are assertions? why they are used why not if-else?? what is normalization? what is QuickSort? what are Avl trees?
differences between pass by reference and pass by value in c language?
W.A.P to take input of an array and display the entered no. in dos.
tell about ur self
3 Answers American Megatrends, CTS,
As you achieve greater success with the company after some years, Will you like to be a shareholder in our company?
pls send me rrb se(s&t)questions
what is advantages and disadvantages of vlan?
how to identify analog and digital in instrumentation
1 Answers GS Engineering Construction,
Suppose you want to form a conceptual model of UML.What elements would you require for this purpose?
Civil Engineering (5086)
Mechanical Engineering (4456)
Electrical Engineering (16639)
Electronics Communications (3918)
Chemical Engineering (1095)
Aeronautical Engineering (239)
Bio Engineering (96)
Metallurgy (361)
Industrial Engineering (259)
Instrumentation (3014)
Automobile Engineering (332)
Mechatronics Engineering (97)
Marine Engineering (124)
Power Plant Engineering (172)
Textile Engineering (575)
Production Engineering (25)
Satellite Systems Engineering (106)
Engineering AllOther (1379)