edited by
2,049 views
0 votes
0 votes

The following program

main( )
{
   int a=5,b=2;
   printf("%d", a +++ b);
}

Is it a++ + b or a + ++b ?

edited by

1 Answer

Related questions

3 votes
3 votes
5 answers
2
arpit.bagri asked Aug 6, 2023
1,088 views
Why is the output of the below program 36? int main(){ int a = 1; int b = ++a * ++a * ++a; printf("%d", b ); ​​​​ return 0; }
0 votes
0 votes
3 answers
4
lalitver10 asked Oct 23, 2021
700 views
#include <stdio.h>int main(){ int a=20; int *ptr=&a; int x=a; printf ("%p\n",&*ptr); printf ("%p\n",&a); return 0;}Why both printf() line printing the s...