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

here the equivalent representation for -1 in memory is it's
two's compliment notation..... so alll the 16 bits will be
HIGH (1).... so four time we are moving the bits left
side.... so after that it will result as 65520.... the
equivalent HEX value for 65520 will get printed.........



thank u

Is This Answer Correct ?    5 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is break statement?

1071


Write a program to print “hello world” without using semicolon?

1088


What 'lex' does?

1112


How do I determine whether a character is numeric, alphabetic, and so on?

1088


Tell us two differences between new () and malloc ()?

1132


When I set a float variable to, say, 3.1, why is printf printing it as 3.0999999?

1013


An application package has been provided to you without any documents for the following application. The application needs to be tested. How will you proceed?

1198


What are the types of c language?

1004


By using C language input a date into it and if it is right?

1042


When is the “void” keyword used in a function?

1439


Write a code of a general series where the next element is the sum of last k terms.

1006


How is a null pointer different from a dangling pointer?

983


What are the different types of C instructions?

1269


Why is not a pointer null after calling free? How unsafe is it to use (assign, compare) a pointer value after it is been freed?

1068


WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2413