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

study the code: #include<stdio.h> void main() { const int a=100; int *p; p=&a; (*p)++; printf("a=%dn(*p)=%dn",a,*p); } What is printed? A)100,101 B)100,100 C)101,101 D)None of the above

15 Answers   Accenture, TCS,


How can I write a function analogous to scanf?

0 Answers  


What is the purpose of the preprocessor directive error?

0 Answers  


What is the explanation for modular programming?

0 Answers  


what is array?

8 Answers  






I need a help with a program: Write a C program that uses data input in determining the whole of points A and a whole of circles B. Find two points in A so that the line which passes through them, cut through the maximum number of circles.

0 Answers   TCS,


How can I prevent other programmers from violating encapsulation by seeing the private parts of my class?

1 Answers  


In C programming, how do you insert quote characters (‘ and “) into the output screen?

0 Answers  


struct node { int *a; char *b; char array[12]; }; struct node m,*n; assign the value in *a,*b,char array[12]

3 Answers  


What are the keywords in c?

0 Answers  


What is hash table in c?

0 Answers  


Why is it important to memset a variable, immediately after allocating memory to it ?

0 Answers  


Categories