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 / ranjith

-1 is stored as '1' 32 times [i.e. ffffffff], doing a left
shift 4 times results in '1' 28 times followed by 4 zeros.
[i.e. in hexadecimal ffffffff0].

Therefore the output for the above printf is fffffff0.

Thanks,
Ranjith

Is This Answer Correct ?    5 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Explain why can’t constant values be used to define an array’s initial size?

1361


Can we change the value of #define in c?

1001


Explain how do you search data in a data file using random access method?

1140


What are the advantages of the functions?

1164


Do you know the purpose of 'register' keyword?

1023


What do the functions atoi(), itoa() and gcvt() do?

1197


Explain how do you convert strings to numbers in c?

1082


Do you know the difference between malloc() and calloc() function?

1072


pierrot's divisor program using c or c++ code

2246


Can you write the function prototype, definition and mention the other requirements.

1146


What is the Purpose of 'extern' keyword in a function declaration?

1084


define string ?

1113


What does 4d mean in c?

1506


What is restrict keyword in c?

1118


Why is c called a mid-level programming language?

1213