Please answer these questions(urgent)
Hello Sir.
how r u.please answer these questions if it is possible for u .if u not know anyone of these answers then donot answer.it is urgent.
i shall be thankful to you.
Question
what is the output of the following program of c/c++;
void main(void)
{
union
{
unsigned short a;
struct
{
unsigned char b;
unsigned char c;
}st;
}un;
un.st.b = 2;
un.st.c = 3;
printf("\n %x \n",un.a);}
Question
which of the following statement performs 2's compliment
a) x=~x+1;
b) x=-x;
c) A and b Both
Question
What is the simplest way of testing whether number is even or odd.
Note :: number % 2 is not an option
arshad mahmood
__________________
arshad mahmood
|