main()

{

signed int bit=512, i=5;

for(;i;i--)

{

printf("%d\n", bit = (bit >> (i - (i -1))));

}

}

a. 512, 256, 128, 64, 32

b. 256, 128, 64, 32, 16

c. 128, 64, 32, 16, 8

d. 64, 32, 16, 8, 4

Answers were Sorted based on User's Feedback



main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n"..

Answer / guest

b)

Is This Answer Correct ?    11 Yes 0 No

main() { signed int bit=512, i=5; for(;i;i--) { printf("%d\n"..

Answer / lucky varshney

c

Is This Answer Correct ?    0 Yes 1 No

Post New Answer

More C Code Interview Questions

Is there any difference between the two declarations, 1. int foo(int *arr[]) and 2. int foo(int *arr[2])

1 Answers  


main(){ unsigned int i; for(i=1;i>-2;i--) printf("c aptitude"); }

2 Answers  


main() { int i=-1,j=-1,k=0,l=2,m; m=i++&&j++&&k++||l++; printf("%d %d %d %d %d",i,j,k,l,m); }

1 Answers  


how to return a multiple value from a function?

2 Answers   Wipro,


x=2 y=3 z=2 x++ + y++; printf("%d%d" x,y);

2 Answers  






print numbers till we want without using loops or condition statements like specifically(for,do while, while swiches, if etc)!

11 Answers   Wipro,


main() { printf("%x",-1<<4); }

3 Answers   HCL, Sokrati, Zoho,


program to find magic aquare using array

4 Answers   HCL,


write a function to give demostrate the functionality of 3d in 1d. function prototye: change(int value,int indexX,int indexY,int indexZ, int [] 1dArray); value=what is the date; indexX=x-asix indexY=y-axis indexZ=z-axis and 1dArray=in which and where the value is stored??

0 Answers   Nagarro,


what is oop?

3 Answers  


Can you send Code for Run Length Encoding Of BMP Image in C Language in linux(i.e Compression and Decompression) ?

0 Answers   Honeywell,


#define max 5 #define int arr1[max] main() { typedef char arr2[max]; arr1 list={0,1,2,3,4}; arr2 name="name"; printf("%d %s",list[0],name); }

1 Answers  


Categories