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() { char c=' ',x,convert(z); getc(c); if((c>='a') && (c<='z')) x=convert(c); printf("%c",x); } convert(z) { return z-32; }
main() { int i =0;j=0; if(i && j++) printf("%d..%d",i++,j); printf("%d..%d,i,j); }
could you please send the program code for multiplying sparse matrix in c????
main() { extern int i; i=20; printf("%d",sizeof(i)); }
why the range of an unsigned integer is double almost than the signed integer.
main() { int i=5,j=10; i=i&=j&&10; printf("%d %d",i,j); }
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++; } }
What is the main difference between STRUCTURE and UNION?
main() { int i=300; char *ptr = &i; *++ptr=2; printf("%d",i); }
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"
write a c-program to display the time using FOR loop