InterviewSolution
Saved Bookmarks
| 1. |
Which of the following is illegal?(a) int *ip;(b) string s, *sp = 0;(c) int i; double* dp = &i;(d) int *pi = 0;I have been asked this question in an international level competition.The above asked question is from Pointers in chapter Types, Pointers, Arrays & Structures in C++ of C++ |
|
Answer» Correct ANSWER is (c) INT i; DOUBLE* DP = &i; |
|