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
write a program that declares an array of 30 elements named "income" in the main functions. then cal and pass the array to a programmer-defined function named "getIncome" within the "getIncome" function, ask the user for annual income of 30 employees. then calculate and print total income on the screen using the following function: "void getIncome ( ai []);
What are the different types of control structures?
Explain the difference between structs and unions in c?
application attempts to perform an operation?
The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?
Explain what are global variables and explain how do you declare them?
What is structure in c language?
Tell me when would you use a pointer to a function?
Is a house a mass structure?
Hi how many types of software editions are there and their difference (like home editions, enterprise, standard etc) can u please help me
What is openmp in c?
int i=10; printf("%d %d %d", i, i=20, i);
Why we use stdio h in c?
Which one would you prefer - a macro or a function?
Which of the following operators is incorrect and why? ( >=, <=, <>, ==)