C
chang
Hi .
I am surprised about this C Question answer even i am also not sharp
in C.
Programme is -:
#include<stdio.h>
void main()
{
int a= -3;
printf("%d",a>>1);
}
Here the printf value is coming :-2.
How come here the value is coming is -2. Please help me to know what
is happenning for negative value(a= -3).
Thanks for advance
Chang
I am surprised about this C Question answer even i am also not sharp
in C.
Programme is -:
#include<stdio.h>
void main()
{
int a= -3;
printf("%d",a>>1);
}
Here the printf value is coming :-2.
How come here the value is coming is -2. Please help me to know what
is happenning for negative value(a= -3).
Thanks for advance
Chang