info@avatto.com
+91-9920808017
26. int i = 5; is a statement in a C program. Which of the following are true?
during execution, value of i may change but not its address
during execution both the affress and value may change
repeated execution may result in different addresses for i
i may not have an associated address
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
27. The following program main () { float a = .5, b = .7; if (b < .7) { if (a < .5) printf("TELO"); else printf("LTTE"); } else printf("JKLF"); }
LTTE
TELO
JKLF
PLO
28. What is the output of the following program segment? void max { int x, int y, int m) { if (x > 5) m = x; else m = y; } int main() { int i = 20, j = 5, k = 0; max(i, j, k ); printf("%d", k) ; }
5
20
0
none of above
29. Consider the program main( ) { int y = 1; printf ("%d", (*(char *)&x)) : } If the machine in which this program is executed is little-endian (meaning, the lower signifi-cant digits occupy lower addresses), then the output will he
99999999
1
unpredictable
30. The program main() { int i = 5; i = (++i) / (i++); printf ("%d", i); prints
2
6
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