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
What does #pragma once mean?
What is p in text message?
What is variable and explain rules to declare variable in c?
Why can’t we compare structures?
Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?
Define macros.
What is the difference between struct and union in C?
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); } }
How is a structure member accessed?
Why do we write return 0 in c?
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
How can I write a function analogous to scanf?
Explain how does flowchart help in writing a program?
What are local static variables? How can you use them?
Differentiate between #include<...> and #include '...'