View Single Post
  #1 (permalink)  
Old July 30th, 2003, 07:07 AM
arshad mahmood arshad mahmood is offline
Authorized User
 
Join Date: Jun 2003
Posts: 32
Thanks: 0
Thanked 0 Times in 0 Posts
Send a message via AIM to arshad mahmood
Default 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
Reply With Quote