Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

In the following code segment what will be the result of the
function,
value of x , value of y

{
unsigned int x=-1;
int y;
y = ~0;
if(x == y)
printf("same");
else
printf("not same");
}

a) same, MAXINT, -1
b) not same, MAXINT, -MAXINT
c) same , MAXUNIT, -1
d) same, MAXUNIT, MAXUNIT
e) not same, MAXINT, MAXUNIT

Answer Posted / guest

Ans. A

Is This Answer Correct ?    4 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the use of typedef in structure in c?

939


Lists the benefits of c programming language?

1088


Explain what are run-time errors?

1056


cavium networks written test pattern ..

4044


What is the general form of #line preprocessor?

965


Can you please explain the scope of static variables?

1013


Explain how does flowchart help in writing a program?

1080


What is the difference between ++a and a++?

1163


Write a Program to find whether the given number or string is palindrome.

1248


what are enumerations in C

1130


How can I invoke another program (a standalone executable, or an operating system command) from within a c program?

1152


write a program fibonacci series and palindrome program in c

996


What is typedef struct in c?

1015


How can I handle floating-point exceptions gracefully?

1131


What is the modulus operator?

1170