hi i am getting different answers for the same code in VC++ and
TURBOC++
The source code is as follows
void main()
{
int a=1;
printf("%d",++a + ++a);
Type: Posts; User: vidyadhara
hi i am getting different answers for the same code in VC++ and
TURBOC++
The source code is as follows
void main()
{
int a=1;
printf("%d",++a + ++a);
hi sorry to say both are wrong as far as i know the answer i going to be 4
as
in the expression
c=2and b=0 and a=9
so (b-b)*a=0
and c+c=4;
after the expression is evaluated c=1 and b=1 and a=9;
i am a beginner may i know diff between
int *x
and
int* x