Programming in C - I/O Operations

41. What will be the value of x and y after execution of the following statement (C language)
n ==5;x=n++;y=-x;?

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


42. The following 'C' program
main
{
unsigned int num;
int i;
scanf("%u",&num);
for(i=0;i<16;i++)
printf("%d",(num<<i&1<<15)?1:0);
}

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


43. Output of the following 'C' program is
main
{
printf("\n%x",-1>>4);
}

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


44. The following 'c' program
main()
{
unsigned int m[]={0.01,0.02,0.04,0.08,0.10,0.20,0.40,0.80};
unsigned char n,i;
scanf("%d",&n);
for(i=0;i<=7;i++)
if(n&m[i])
printf("\nyes");
}

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *


45. In a 'C' program, constant is defined

Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *