Choose the best answer.Prior to using a pointer variable It should be both declared and initialized. It should be declared. None of these. It should be initialized. TRUE ANSWER : ? YOUR ANSWER : ?
Find the output of the following program.void main(){ int i=10; /* assume address of i is 0x1234ABCD */ int *ip=&i; int **ipp=&&i; printf("%x,%x,%x", &i, ip, *ipp); } Runtime error 0x1234ABCD, 0x1234ABCD, 0x1234ABCD 0x1234ABCD, 0x1234ABCD, 10 0x1234ABCD, 10, 10 Syntax error TRUE ANSWER : ? YOUR ANSWER : ?
The address operator &, cannot act on R-values Members of a structure Local variables Both of the above Arithmetic expressions TRUE ANSWER : ? YOUR ANSWER : ?
An array elements are always stored in ________ memory locations. Random Sequential and Random None of these Sequential TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:#include<stdio.h>void main(){ register i=5; char j[]= "hello"; printf("%s %d", j, i);} None of These hello garbage value Error hello 5 TRUE ANSWER : ? YOUR ANSWER : ?
Determine output:main(){ int i = 5; printf("%d%d%d%d%d", i++, i--, ++i, --i, i);} 54554 45445 54544 45545 TRUE ANSWER : ? YOUR ANSWER : ?
Which of the following is not a correct variable type? char int float double real TRUE ANSWER : ? YOUR ANSWER : ?
A function 'p' that accepts a pointer to a character as argument and returns a pointer to an array of integer can be declared as int *p(char *)[] None of these. int (*p) (char *)[] int(*p(char *))[] TRUE ANSWER : ? YOUR ANSWER : ?
Determine Output:void main(){ char a[]="12345"; int i = strlen(a); printf("%d", ++i);} 7 6 None of These 5 TRUE ANSWER : ? YOUR ANSWER : ?
The operator > and < are meaningful when used with pointers, if The pointers point to elements of the same array. The pointers point to data of similar type. None of these. The pointers point to structure of similar data type. TRUE ANSWER : ? YOUR ANSWER : ?