C Programming and Technical Programming Output

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

Options
1) a=43 b=21
2) a=42 b=21
3) a=43 b=23
4) a=44 b=20

Read Solution (Total 48)

C Other Question

Write a program in Swapping inc/c++ of two numbers in a single line only ? integer x = 0 // statement 1
integer sum = 0 // statement 2
while ( x < 10 ) // statement 3
{
sum = x*x*x // statement 4
x = x + 1 // statement 5
}
print sum // statement 6