main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}

what is the output?

Answer Posted / hemanth

5
10
2

Is This Answer Correct ?    0 Yes 11 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does #pragma once mean?

693


What is p in text message?

546


What is variable and explain rules to declare variable in c?

560


Why can’t we compare structures?

818


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

650






Define macros.

791


What is the difference between struct and union in C?

580


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

1962


How is a structure member accessed?

592


Why do we write return 0 in c?

557


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

733


How can I write a function analogous to scanf?

662


Explain how does flowchart help in writing a program?

636


What are local static variables? How can you use them?

651


Differentiate between #include<...> and #include '...'

623