main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answer Posted / alamuru sreenivasa reddy
2<<4 that means 2 is left shifted by 4 times. then we will get 0010 0000=32 in decimal form. similarly 1>>2 means that is right shifted 2 times we will get 0000 0000=0.. so 0+32=32
i.e answer
| Is This Answer Correct ? | 24 Yes | 10 No |
Post New Answer View All Answers
Difference between constant pointer and pointer to a constant.
How to delete a node from linked list w/o using collectons?
which of the following is not a character constant a) 'thank you' b) 'enter values of p, n ,r' c) '23.56E-o3' d) all of the above
How can I do graphics in c?
Sir i need notes for structure,functions,pointers in c language can you help me please
What is the difference between exit() and _exit() function in c?
What’s a signal? Explain what do I use signals for?
please help me..... please codes and flowchart plz turbo c lang po yan.....please asap response... 3. Make an astrology program. The user types in his or her birthday (month, day, and year as integer), and the program responds with the user’s zodiac sign, horoscope, and other information related to it. If the user’s birth year falls into a leap year, your program should display an appropriate message for it. NOTES: Conditional Statements: it should be with graphics
Explain output of printf("Hello World"-'A'+'B'); ?
By using C language input a date into it and if it is right?
Who developed c language and when?
What is echo in c programming?
What is the purpose of clrscr () printf () and getch ()?
Explain zero based addressing.
What is the use of typedef in c?