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

main() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }

1 Answers  


main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); }

1 Answers  


could you please send the program code for multiplying sparse matrix in c????

0 Answers  


main() { extern int i; i=20; printf("%d",sizeof(i)); }

2 Answers  


why the range of an unsigned integer is double almost than the signed integer.

1 Answers  






main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }

1 Answers  


main( ) { int a[ ] = {10,20,30,40,50},j,*p; for(j=0; j<5; j++) { printf(ā€œ%dā€ ,*a); a++; } p = a; for(j=0; j<5; j++) { printf(ā€œ%d ā€ ,*p); p++; } }

1 Answers  


What is the main difference between STRUCTURE and UNION?

13 Answers   HCL,


main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }

4 Answers   CSC,


main() { signed int bit=512, mBit; { mBit = ~bit; bit = bit & ~bit ; printf("%d %d", bit, mBit); } } a. 0, 0 b. 0, 513 c. 512, 0 d. 0, -513

3 Answers   HCL, Logical Computers,


write a program to find out roots of quadratic equation "x=-b+-(b^2-4ac0^-1/2/2a"

2 Answers  


write a c-program to display the time using FOR loop

3 Answers   HCL,


Categories