int x=5;
printf("%d%d%d",x,x<<2,x>>2);

Answer Posted / jitendra nath das

Ans will be

x=5
x<<2=20
x>>2=1

Is This Answer Correct ?    2 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

can we have joblib in a proc ?

1650


Give differences between - new and malloc() , delete and free() ?

605


How do I determine whether a character is numeric, alphabetic, and so on?

620


Write a program to identify if a given binary tree is balanced or not.

680


Write a C++ program to generate 10 integer numbers between - 1000 and 1000, then store the summation of the odd positive numbers in variable call it sum_pos, then find the maximum digit in this variable regardless of its digits length.

1565






Are there constructors in c?

588


design and implement a data structure and performs the following operation with the help of file (included 1000 student marks in 5 sub. and %also) 1.how many students are fail in all 5 subjects (if >35) 2. delete all student data those are fail in all 5 subjects. 3. update the grace marks (5 no. if exam paper is 100 marks) 4. arrange the student data in ascending order basis of marks. 5.insert double of deleted students with marks in the list.

1491


What is meant by inheritance?

629


Is there a way to jump out of a function or functions?

630


Write a program that takes a 5 digit number and calculates 2 power that number and prints it(should not use big integers and exponential functions)

5790


What is the difference between declaring a variable by constant keyword and #define ing that variable?

2695


What is abstract data structure in c?

523


write a c programming using command line argument,demonstrate set operation(eg;union,intersection,difference) example output is c:>setop 12 34 45 1 union 34 42 66 c:>setop 12 34 1 42 66 c:>setop 12 34 diff 12 56 67 78 setop 12 34

1624


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

722


Are c and c++ the same?

623