main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answer Posted / vignya
size of integer is 8 bits
a=0000 0100, b=0000 0010;
b>>2 becomes 0000 0000 and b<<a becomes 0010 0000
on whole a= 0010 0000+ 0000 0000=0010 0000 =32
Is This Answer Correct ? | 1 Yes | 0 No |
Post New Answer View All Answers
Describe wild pointers in c?
What is pass by reference in functions?
Which is not valid in C a) class aClass{public:int x;}; b) /* A comment */ c) char x=12;
How can I pad a string to a known length?
What are structure members?
Why is void main used?
What are the types of variables in c?
What is the g value paradox?
Explain the meaning of keyword 'extern' in a function declaration.
What is a macro?
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is the difference between %d and %i?
What is function what are the types of function?
What are the types of data types and explain?
What are nested functions in c?