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

Answer Posted / ankurmohansharma

In case of 16- bit compiler answer will be fff0
In case of 32-bit compiler answer will be fffffff0.

Reason being same as of above two

Is This Answer Correct ?    7 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

how to introdu5ce my self in serco

1528


Is null a keyword in c?

741


What is an auto variable in c?

762


Why are all header files not declared in every c program?

605


A banker has a seif with a cipher. Not to forget the cipher, he wants to write it coded as following: each digit to be replaced with the difference of 9 with the current digit. The banker chose a cipher. Decipher it knowing the cipher starts with a digit different than 9. I need to write a program that takes the cipher from the keyboard and prints the new cipher. I thought of the following: Take the input from the keyboard and put it into a string or an array. Go through the object with a for and for each digit other than the first, substract it from 9 and add it to another variable. Print the new variable. Theoretically I thought of it but I don't know much C. Could you give me any kind of hint, whether I am on the right track or not?

1516






Which control loop is recommended if you have to execute set of statements for fixed number of times?

816


What does %d do?

729


Explain how does flowchart help in writing a program?

636


typedef struct{ char *; nodeptr next; } * nodeptr ; What does nodeptr stand for?

1078


1) There is a singing competition for children going to be conducted at a local club. Parents have been asked to arrive at least an hour before and register their children’s names with the Program Manager. Whenever a participant registers, the Program Manager has to position the name of the person in a list in alphabet order. Write a program to help the Program Manager do this by placing the name in the right place each time the Program Manger enters a name. The Logic should be written in Data Structures?

1921


When c language was developed?

644


Explain what is wrong with this program statement?

626


Why string is used in c?

586


c language supports bitwise operations, why a) 'c' language is system oriented b) 'c' language is problem oriented c) 'c' language is middle level language d) all the above

619


define string ?

672