ALLInterview.com :: Home Page KalAajKal.com
 Advertise your Business Here     
Browse  |   Placement Papers  |   Company  |   Code Snippets  |   Certifications  |   Visa Questions
Post Question  |   Post Answer  |   My Panel  |   Search  |   Articles  |   Topics  |   ERRORS new
   Refer this Site  Refer This Site to Your Friends  Site Map  Bookmark this Site  Set it as your HomePage  Contact Us     Login  |  Sign Up                      
tip   To Refer this Site to Your Friends   Click Here
Google
 
Categories  >>  Software  >>  Programming Languages  >>  C
 
 


 

 
 C interview questions  C Interview Questions
 C++ interview questions  C++ Interview Questions
 VC++ interview questions  VC++ Interview Questions
 Delphi interview questions  Delphi Interview Questions
 Programming Languages AllOther interview questions  Programming Languages AllOther Interview Questions
Question
main()
{
  	int x=5;
	printf("%d %d %d\n",x,x<<2,x>>2);
}

what is the output?
 Question Submitted By :: Naveed
I also faced this Question!!     Rank Answer Posted By  
 
  Re: main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
Answer
# 1
5  
20
5
 
Is This Answer Correct ?    0 Yes 4 No
Mannucse
[Kiona]
 
  Re: main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
Answer
# 2
5 20 1
 
Is This Answer Correct ?    4 Yes 1 No
Padmarao
 
 
 
  Re: main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
Answer
# 3
5
10
2
 
Is This Answer Correct ?    0 Yes 3 No
Hemanth
 
  Re: main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
Answer
# 4
Ans:

5 20 1
 
Is This Answer Correct ?    5 Yes 1 No
Suresh Reddy
 
  Re: main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
Answer
# 5
5
20
0
 
Is This Answer Correct ?    0 Yes 4 No
Rahul
 
  Re: main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
Answer
# 6
5 
20
1.25
 
Is This Answer Correct ?    1 Yes 4 No
Nagi
 
  Re: main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the output?
Answer
# 7
5
20
1

kuchh log pagal hain 
%d aur int datatype main float value print karate hain(1.25)
hehehehe........
 
Is This Answer Correct ?    0 Yes 0 No
Dgsfg
 

 
 
 
Other C Interview Questions
 
  Question Asked @ Answers
 
Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms Convex-Digital4
Hi, main() { } Is a user defined function or Built in Functionn Honeywell9
what is the use of pointers  5
what is the advantage of software development  1
How do I access command-line arguments? Wipro2
char S; char S[6]= " HELLO"; printf("%s ",S[6]); output of the above program ? (0, ASCII 0, I,unpredictable) Mascot6
what are the languages used in c#? Infosys1
To find whether a number is even or odd without using any conditional operator?? IBM4
what is the differnce between AF_INET and PF_INET? Wipro2
HOW TO ANSWER IF ASKED " WHAT KIND OF A PERSON ARE YOU?" I NEED AN ANSWER THAT IMPRESS THE INTERVIEWER  2
what is the difference between getch() and getchar()?  5
difference between function & structure Verizon5
what is the output of below pgm? void main() { int i=0; if(i) printf("pass"); else printf("fail"); }  3
Find Index of least significant bit set in an Integer. ex. int value is say 10001000 results should be 4.  1
HOW DO YOU HANDLE EXCEPTIONS IN C? AppLabs2
What is the output of the following program #include<stdio.h> main() { int i=0; fork(); printf("%d",i++); fork(); printf("%d",i++); fork(); wait(); } ADITI5
long int size a) 4 bytes b) 2 bytes c) compiler dependent d) 8 bytes HCL11
what is a static function Satyam10
how to do in place reversal of a linked list(singly or doubly)?  2
which one low Priority in c? a)=,b)++,c)==,d)+  8
 
For more C Interview Questions Click Here 
 
 
 
 
 
   
Copyright Policy  |  Terms of Service  |  Help  |  Site Map 1  |  Articles  |  Site Map  |   Site Map  |  Contact Us interview questions urls   External Links 
   
Copyright © 2007  ALLInterview.com.  All Rights Reserved.

ALLInterview.com   ::  Forum9.com   ::  KalAajKal.com