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

Answers were Sorted based on User's Feedback



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

Answer / sunil gupta

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

Is This Answer Correct ?    11 Yes 1 No

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

Answer / 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

More C Interview Questions

What is pointer to pointer in c with example?

0 Answers  


What is #line used for?

0 Answers  


do ne body have any idea about the salary for the we r going to have interview. yup .. u got it right ..i m talking abt NIC.

1 Answers  


what is the c.

3 Answers   IBM, TCS,


why we use "include" word before calling the header file. is there any special name for that include??????

1 Answers   TCS,






Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

0 Answers   IBM,


how do we remove the printed character in printf statement and write next it it

1 Answers  


what is differnence b/w macro & functions

1 Answers  


How to write a code for implementing my own printf() and scanf().... Please hep me in this... I need a guidance... Can you give an coding for c... Please also explain about the header files used other than #include<stdio.h>...

0 Answers  


How is pointer initialized in c?

0 Answers  


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

0 Answers  


int main() { int *p=new int; *p=10; del p; cout<<*p; *p= 60; cout<<*p; } what will be the output & why?

4 Answers   TCS,


Categories