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

Differentiate between the expression “++a” and “a++”?

1247


Why do we use main function?

1175


Describe static function with its usage?

1206


Without Computer networks, Computers will be half the use. Comment.

2296


What is the difference between a function and a method in c?

1079


What is the use of in c?

1026


Is there anything like an ifdef for typedefs?

1147


Explain built-in function?

1132


Are pointers really faster than arrays?

1025


how many key words availabel in c a) 28 b) 31 c) 32

1076


What is malloc and calloc?

1051


What is meant by recursion?

1050


a program that can input number of records and can view it again the record

1909


What are operators in c?

1022


What Is The Difference Between Null And Void Pointer?

1247