Which of the following statement is correct?
a) int i=10;
int *i=&j;
a) I and j are pointer
b) I is pointer stroe address of j
c) j is pointer store address of I
d) none of these
If we have the statement int *ptr; then to what ptr point?
a) points to an integer type variable
b) points a character type variable
c) points to floating type variable
d) none of these
Which of the following declarations are illegal?
a) void *ptr;
b) char *str =”hello”;
c) char str=”hello”;
d) const *int p1;
Which of the following statement is not valid?
a) int p= &total;
b) int p= int *total;
c) float total =&p2;
d) all of these
The C++ operator …… returns memory to the system for reuse.
a) null
b) delete
c) remove
d) all of these
If p1 and p2 are pointers where p1 points to v1 and p2 points to v2 which of these statement is correct?
a) *p1=*p2; value p1 equal t p2
b) *p1=*p2; makes value of v2 equal to v1
c) *p1=*p2; value of p2 equal to p1
d) *p1=*p2; value of v1 equal to v2