It is not any gate question but just my doubt over the topic C programming?
Ques:- What will be the output of the following program?
void main(){
int a=0,x=0;
a = 10;
x = ++a + ++a + ++a;
printf("Value of X = %d and Value of A = %d",x,a);
}
What will be the output of the above program?
Please give explanation also for your answer.
(Please tell what was your approach in this answer)