What is the output of C Program?
int main()
{
int a=10, b, c;
b=a++;
c=++a;
printf("%d %d %d", a, b, c);
return 0;
}
A
10 11 12
O
B
12 10 12
O
C
12 11 12
O
D
12 12 12
Answers
Answered by
0
Answer:
what's is the babes I don't knoe
Answered by
0
The output for the given program is 12 11 12.
In the given program, increment and decrement operator is used.
Firstly, a is assigned value = "10",
Then b is assigned value = a++ = 11,
C is assigned value = ++a = 12,
Ultimately the end value of A, B, C is 12, 11, 12.
An increment or decrement operator is a type of operator which increases or decreases the value of a variable by a given amount.
Henceforth, The output of the program is 12 11 12.
Similar questions