Q. What will be output for the following code?
Code:#include <stdio.h>
int main()
{
int a = 2;
int b = (a++, a++);
printf(""%d%d
"", b, a);
}
β
Correct Answer: (D)
3 4
#include <stdio.h>
int main()
{
int a = 2;
int b = (a++, a++);
printf(""%d%d
"", b, a);
}
You must be Logged in to update hint/solution