Home / MCQ Bank / Computer
Computer Arrays And Strings In C Plus Plus

What is the correct way to access the last element of an array named arr in C++?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • arr[size - 1]

Related Computer Questions

__________ is used to build 'intuitive' queries. How can you prevent data skew in a Hadoop job with uneven key distribution? Hardware or software designed to guard against unauthorized access to a computer network is known as a(n)___________? What is a "magic comment" in Ruby? How can you reverse a doubly linked list?