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
Explain the difference between the local variable and global variable in c?
int i=10; printf("%d %d %d", i, i=20, i);
What is #include conio h?
What is typedf?
the process of defining something in terms of itself is called (or) in C it is possible for the functions to call themselves. A function called a) nested function b) void function c) recursive function d) indifinite function
What is new line escape sequence?
Why is structure padding done in c?
What is the sizeof () operator?
write an algorithm to display a square matrix.
What is pointers in c with example?
What is wrong in this statement?
Write a C program to help a HiFi’s Restaurant automate its breakfast billing system. Your assignment should implement the following items: a. Show the customer the different breakfast items offered by the HiFi’s Restaurant. b. Allow the customer to select more than one item from the menu. c. Calculate and print the bill to the customer. d. Produce a report to present your complete program and show more sample output. Assume that the HiFi’s Restaurant offers the following breakfast menu: Plain Egg $2.50 Bacon and Egg $3.45 Muffin $2.20 French Toast $2.95 Fruit Basket $3.45 Cereal $0.70 Coffee $1.50 Tea $1.80
I completed my B.tech (IT). Actually I want to develop virtual object that which will change software technology in the future. To develop virtual object what course I have to take. can I any professor to help me.
please send me the code for multiplying sparse matrix using c
How do I copy files?