main()
{
int a=4,b=2;
a=b<<a + b>>2;
printf("%d", a);
}
Answers were Sorted based on User's Feedback
Answer / vineetha
tell this answer and mail to this id vachika90@gmail.com
| Is This Answer Correct ? | 8 Yes | 2 No |
Answer / sanjay bhosale
statement a=b<<a + b>>2;
will be treated as
a=(b<<(a+b))>>2;
and gives output 32.
| Is This Answer Correct ? | 5 Yes | 0 No |
Answer / a.jayashree
ans is=10;
if its wrong give me right ans to jshree20@gmail.com
| Is This Answer Correct ? | 0 Yes | 2 No |
write a program to swap bits in a character and return the value prototype of function char fun (char a, charb flag c) where fun returns a char, char a is a the value char b is the bit to be changed and flag c is the bit value for eg: x=fun(45,7,0) since 45 is 0010 0101 and ow x should contain the value 65 (0110 0101)
1 Answers Bosch, College School Exams Tests,
Function which gives a pointer to a binary trees const an integer value at each code, return function of all the nodes in binary tree.?
what are the interview question's in the language c
using for loop sum 2 number of any 4 digit number in c language
What is identifier in c?
i have a written test in tomorrow
Why is c so powerful?
program to print circle structure
Explain modulus operator. What are the restrictions of a modulus operator?
Where register variables are stored in c?
What is an anonymous union and where to apply that ?
What is #pragma directive?how it is used in the program? what is its advantages and disadvantages?