What is the output of following C++ programming language code? int main() {…
SSC Scientific Assistant 2022
What is the output of following C++ programming language code? int main() { int array[] = {-5, 10, -15,20}; cout << -array[1]; return 0; }
- A.
-5
- B.
Garbage value
- C.
Error
- D.
-10
Attempted by 387 students.
Sign up free to check your answer
Sign up freeLoading lesson…

