main()
{
int a=5;
printf(?%d,%d,%d\n?,a,a< <2,a>>2);
}
Answer: 5,20,1 please explain this code in detail
Answer Posted / sathish
go through right shift & left shift operator function.
Ex: a<<2 = 5<<2 = 00000101(in binary)<<2 = 00010100(in
binary) = 20(in decimal)
| Is This Answer Correct ? | 2 Yes | 2 No |
Post New Answer View All Answers
What is indirection in c?
Describe newline escape sequence with a sample program?
What is the process to generate random numbers in c programming language?
i got 75% in all semester am i eligible for your company
What does s c mean in text?
Explain the difference between exit() and _exit() function?
Explain #pragma statements.
What is the difference between class and object in c?
Is that possible to add pointers to each other?
Explain what will be the outcome of the following conditional statement if the value of variable s is 10?
Is multithreading possible in c?
while initialization of array why we use a[][2] why not a[2][]...?
GIVEN A FLOATING POINT NUMBER HOW IS IT ACTUALLY STORED IN MEMORY ? CAN ANYONE EXPLAIN?? THE 32 BIT REPRESENTATION OF A FLOATING POINT NUMBER ALLOTS: 1 BIT-SIGN 8 BITS-EXPONENT 23 BITS-MANTISSA
What is the -> in c?
which of the following statement is wrong a) mes=123.56; b) con='T'*'A'; c) this='T'*20; d) 3+a=b;