Computer Science, asked by Prakashteki2001, 8 months ago

#include int main() { int a=1,b=1,d=1; printf("%d, %d, %d",++a + ++a+a++,a++ + ++b,++d + d++ + a++); }

Answers

Answered by kumarraja2k05
6

Answer:

15,4,6

Explanation:

Answered by qwvilla
0

#include int main() { int a=1,b=1,d=1; printf("%d, %d, %d",++a + ++a+a++,a++ + ++b,++d + d++ + a++); }

++a means pre-increment and a++ means post-increment

a = 1 , b = 1 and d =1

For ++a + ++a + a++

= (1+1) + (1+1+1) + (1+1+1) ..........Present value of a = 1+1+1+1 = 4

= 2 + 3 + 3

= 8

For a++ + ++b

= 4 + (1+1).........Present value of a = 4+1 = 5

= 4 + 2

= 6

For ++d + d++ + a++

= (1+1) + (1+1) + 5....Present value of d=1+1+1=3 and a=5+1=6

= 2 + 2 + 5

= 9

OUTPUT

8,6,9

#SPJ2

Similar questions