please answer this question right and i will mark you as brainliest
What will be the output of the following C program?
void main()
{
int a= 5;
printf(“%d”, a++);
getch();
}
Answers
Answered by
0
Answer:
The answer would be 5
Explanation:
The answer would be 5 because what a++ does that it prints the variable first and then increment it's value. If you want the answer to be 6 then you would need to do ++a instead of a++
Please mark it as the brainliest
Similar questions