main()
{
int x=5;
printf("%d %d %d\n",x,x<<2,x>>2);
}

what is the output?

Answers were Sorted based on User's Feedback



main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the o..

Answer / suresh reddy

Ans:

5 20 1

Is This Answer Correct ?    18 Yes 4 No

main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the o..

Answer / padmarao

5 20 1

Is This Answer Correct ?    15 Yes 3 No

main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the o..

Answer / vishwateja

5,20,1

Is This Answer Correct ?    3 Yes 2 No

main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the o..

Answer / dgsfg

5
20
1

kuchh log pagal hain
%d aur int datatype main float value print karate hain(1.25)
hehehehe........

Is This Answer Correct ?    2 Yes 8 No

main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the o..

Answer / sanjeev

5
50
1

Is This Answer Correct ?    0 Yes 6 No

main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the o..

Answer / mannucse

5
20
5

Is This Answer Correct ?    1 Yes 10 No

main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the o..

Answer / rahul

5
20
0

Is This Answer Correct ?    1 Yes 10 No

main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the o..

Answer / hemanth

5
10
2

Is This Answer Correct ?    0 Yes 11 No

main() { int x=5; printf("%d %d %d\n",x,x<<2,x>>2); } what is the o..

Answer / nagi

5
20
1.25

Is This Answer Correct ?    2 Yes 13 No

Post New Answer

More C Interview Questions

7. Identify the correct argument for the function call fflush() in ANSI C: A)stdout B)stdin C)stderr D)All the above

10 Answers   Accenture,


In a byte, what is the maximum decimal number that you can accommodate?

0 Answers  


using for loop sum 2 number of any 4 digit number in c language

0 Answers  


Heyyy All, Just a challenge . A C program with if Else if(){ /// insert sumthing print ("in if") // insert sumting } else { ///// insert sumthing print ("in else"); //// insert sumthing } can anyone modify it so that program prints. if and else both

3 Answers  


what is the difference between auto and static keywords

1 Answers   cDot, College School Exams Tests, TCS,






what is meant by c

9 Answers   INiTS,


Is it possible to use curly brackets ({}) to enclose single line code in c program?

0 Answers  


Explain what are reserved words?

0 Answers  


c language interview questions & answer

0 Answers  


How are portions of a program disabled in demo versions?

0 Answers  


What happens if you free a pointer twice?

0 Answers  


What is the purpose of main() function?

0 Answers  


Categories