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

What is the correct way to access the fifth character in a string variable named text in C++?

Select the best option to verify your answer:
Show Correct Answer
Correct Answer: Option D • text[4]

Related Computer Questions

Which of following is Not one of Excel's what-if function? Which of the following is the correct way to apply Styles? Which of the following is the product of data processing? What will be the output of the following PHP code ? <?php $a = array( "a" => "Jaguar" , "b" => "Land Rover" , "c" => "Audi" , "d" => "Maseratti" ) ; echo array_search( "Audi" , $a ) ; ?> What is the output of the given code? string_array = ["a","e","i","o","u"] boolean_array = ["True","False"] puts string_array[3] puts boolean_array[1]