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...

what is output of the following statetment?Printf(“%x”,
-1<<4); ?

Answer Posted / sasmita lenka

Answer fff0.........As -1 is internally represented as as
all 1's.When left shifted four times the least significant 4
bits are filled with 0's.The %x format specifier specifies
that the integer value be printed as a hexadecimal value.

Is This Answer Correct ?    14 Yes 1 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is character set?

1166


please give me some tips for the placement in the TCS.

2108


List out few of the applications that make use of Multilinked Structures?

2187


What is difference between class and structure?

1114


Explain the term printf() and scanf() used in c language?

1049


Is array name a pointer?

1030


Can you mix old-style and new-style function syntax?

1098


What are the keywords in c?

1122


What does %2f mean in c?

1215


What are extern variables in c?

992


What's a good way to check for "close enough" floating-point equality?

1159


What are the 4 types of unions?

1034


What is a pointer on a pointer in c programming language?

1139


Why do we use int main instead of void main in c?

1144


What are local static variables?

1150