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

List out few of the applications that make use of Multilinked Structures?

1 Answers   Accenture,


What is pass by reference in c?

0 Answers  


Does sprintf put null character?

0 Answers  


an algorithem for the implementation of circular doubly linked list

1 Answers  


Can you think of a way when a program crashed before reaching main? If yes how?

2 Answers  






What is getch?

0 Answers  


Which header file is used for clrscr?

0 Answers  


A marketing company wishes to construct a decision table to decide how to treat clients according to three characteristics: Gender, City Dweller, and age group: A (under 30), B (between 30 and 60), C (over 60). The company has four products (W, X, Y and Z) to test market. Product W will appeal to female city dwellers. Product X will appeal to young females. Product Y will appeal to Male middle aged shoppers who do not live in cities. Product Z will appeal to all but older females.

2 Answers  


What is substring in c?

0 Answers  


Do pointers need to be initialized?

0 Answers  


What are the 4 data types?

0 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  


Categories