info@avatto.com
+91-9920808017
26. Consider the declaration int a = 5, *b = &a; The statement printf("%d", a * b); prints
25
garbage
5 x address of b
an error message
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. Consider the following segment char *a, *b, c[10], d[10]; a = b; b = c; c = d; d = a; choose the statements having errors
no error
a = b; and b = c;
c = d; and d = a;
a = b; and d = a;
28. calloc(m, n); is equivalent to
malloc (m*n, 0);
memset(0, m*n);
ptr = malloc (m*n); memset (p, 0, m*n);
ptr = malloc(m*n); strcpy(p, u);
29. If p is a pointer to an integer and t is a pointer to a character then sizeof (p) will be
same as that of sizeof (t)
greater than that of sizeof (t)
less than that of sizeof (t)
none of the above
30. Which of the following comments about arrays and pointers is/are not true?
Both are exactly same
Array is a constant pointer
Pointer is an one-dimensional and dynamic array
All of these
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