Given that p1 is an integer pointer variable, and a1 is an integer array, which of the following statements are not legal code?
A) p1= a1;
B) cout << p1[0];
C) cin >> p1[0];
D) a1 = p1;
Correct Answer:
Verified
Q24: Which of the following correctly declares a
Q25: What is the output of the following
Q26: Given that p1 is a pointer variable
Q27: Which of the following is not true?
A)
Q28: What is the output of the following
Q30: If a program requires a dynamically allocate
Q31: What is wrong with the following code
Q32: Assuming that the pointer variable p1 is
Q33: Which of the following statements correctly prints
Q34: Given that p1 is a pointer, p1++
A)
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents