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
What are the different data types in C?
Can a pointer point to null?
Explain about block scope in c?
What is string constants?
What does calloc stand for?
what do the 'c' and 'v' in argc and argv stand for?
What are the ways to a null pointer can use in c programming language?
Multiply an Integer Number by 2 Without Using Multiplication Operator
What is the acronym for ansi?
What are the 4 types of programming language?
What is sizeof c?
Explain logical errors? Compare with syntax errors.
what is the basis for selection of arrays or pointers as data structure in a program
What are the standard predefined macros?
Given a valid 24 hour format time find the combination of the value and write a program ,do not hard the value and if any other inputs provided should work with the logic implemented Input: 11:30 Output: 13:10 Input: 18:25 Output: 21:58