info@avatto.com
+91-9920808017
11. Consider the following program fragment. static char wer[3][4] = {"bag", "let", "bud"}; char(*ptr)[4] = wer; The putchar (* (wer [1] + 1)) ;
prints e
prints a
prints 1
prints b
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
12. Consider the following program fragment. static char wer[3][4] = {"bag", "let", "bud"}; char(*ptr)[4] = wer; The possible output of printf ( "%d %d", wer, wer +1); is
262 262
262 266
262 263
262 265
13. The operators > and < are meaningful when used with pointers, if
the pointers point to data of similar type
the pointers point to structure of similar data type
the pointers point to elements of the same array
none of these
14. Choose the best answer. Prior to using a pointer variable
it should be declared
it should be initialized
it should be both declared and initialized
none of the above
15. Consider the two declarations void *voidPtr; char *charPtr; Which of the following assignments are syntactically correct?
voidPtr = charPtr
charPtr = voidPer
*voidPtr = *charPtr
*charPtr = voidPtr
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