info@avatto.com
+91-9920808017
41. What will be the value of x and y after execution of the following statement (C language) n ==5;x=n++;y=-x;?
5,4
6,5
5,6
5,5
Your email address will not be published. Required fields are marked *
Report
Name
Email
Website
Save my name, email, and website in this browser for the next time I comment.
Comment
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); }
Prints all even bits from num
Error
Prints binary equivalent of num
none of these
43. Output of the following 'C' program is main { printf("\n%x",-1>>4); }
ffff
0fff
0000
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"); }
Putting of all bits which are on in the number n
Testing whether the individual bits of n are on or off
Would give an error
Undefined
45. In a 'C' program, constant is defined
Before main
After main
Anywhere, but starting on a new line
Anywhere in the program
Login with Facebook
Login with Google
Forgot your password?
Lost your password? Please enter your email address. You will receive mail with link to set new password.
Back to login