Observe the following C++ code and assume that all desired header files are…
Navodaya Vidyalaya Samiti 2022
Observe the following C++ code and assume that all desired header files are already included. Identify the possible output from the given options:
void main() { int M[] = {80, 60, 70, 90}; char *S = "MARKS"; int *P; P = M; P++; S++; cout << S << *P << endl; }
- A.
MARKS 80
- B.
ARKS 60
- C.
RKS 70
- D.
KS 90
Attempted by 528 students.
Sign up free to check your answer
Sign up freeLoading lesson…

