0
How to solve this pre-increament in c?
I am unable to get the correct answer to this question. Can anyone help me with stepwise explanation? #include <stdio.h> #include<math.h> int main() { int a=12,b; b=++a + ++a + ++a; printf("%d %d", a,b); return 0; }
6 Respostas
+ 3
b = 13 + 14 + 15
Output should be 15 42
I don't know why it's giving 15 43
+ 2
put
b = a+3
0
I want explanation for GCC compiler
0
I'm not getting how it's giving 43
0
This was asked in the interview, thats why I am asking for