Questions
Questions
Variables 2. Output?
Percent main()
y2x5__fg7h {
annual profit char a[4]="HELL";
_1990_tax printf("%s",a);
savings#account }
Double
9winter 3. The statement- printf("%d",printf("nal")); prints
1) 3 2) nal 3) nal3 4) 3nal
7. What does the value of count signify in the following pogram fragment ? int x=45;int
count=1; while(x=x&(x-1)) count++;
1) number of 0 in binary equivalent of x 2) No of 1 in binary equivalent of x
3) 1's complement of x 4) summation of 0s and 1s in the binary equivalent of x
9. The following program fragment prints which of the following : int x=109 , y=5 ;
printf((y>7)? "%d": "%c",x);
1) It will cause an execution error 2) It will produce syntax error
3) It will print m 4) none of the above