Computer Science, asked by pixiedevil, 4 months ago

Answer this please

#include<studio.h>
int main()
{
a= a++ + a++ - a++ + ++a ;
printf ("%d" , a ) ;
return 0 ;
}​

Answers

Answered by yesiamin6
1

Answer:

Look here in the program you didn't declare the variable a so it results in the error of the programming

And moreover you didn't initialize the value of a so it's result the grabage value.

Explanation:

So if you want out put means you need to declare and initialize the value of a

Let consider

int a=1;

Then the output will be 1+2-3+5

as fist its post increment the value will be increased after the (a++) and same in next condition

And same in third a++=>a=3;

After a++ the value will be 4 and in next case the value is pre increment so the a value is 5

=>1+2-3+5=5

So the a value will be 5

HOPE IT HELPS YOU

DO FOLLOW FOR MORE ANSWERS/PROGRAMS

MARK AS BRAINLIEST

Similar questions