Explanation:A pointer can be in only 3 states a,b and c. 5. Which of the following is illegal?
A. int *ip;
B. string s, *sp = 0;
C. int i; double* dp = &i;
D. int *pi = 0;
Answer:A
Explanation:A pointer can be in only 3 states a,b and c. 5. Which of the following is illegal?
A. int *ip; B. string s, *sp = 0; C. int i; double* dp = &i; D. int *pi = 0;
Explanation:dp is initialized int value of i. 6. What will happen in this code?