adplus-dvertising
frame-decoration

Question

The first element in a string is

a.

the name of the string

b.

the first character in the string

c.

the length of the string

d.

the name of the array holding the string

Answer: (b).the first character in the string

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

Q. The first element in a string is

Similar Questions

Discover Related MCQs

Q. You typically initialize a String variable to _____

Q. The end of string is recognized by

Q. The string HELLO WORLD needs

Q. Which of the following stream manipulators advances the cursor to the next line on the computer screen?

Q. You can use the C++ _____ function to assign a value to a String variable

Q. The standard input stream, which refers to the keyboard, is called

Q. To include the double quotes as part of the control string we use the symbol

Q. To use the strcpy function, you must include the _____ header file in your program

Q. We can output text to an object of class ofstream using the insertion operator « because

Q. When you write to a file rather than the screen, you use the C++ class _____

Q. Which of the following statements opens a file named temp.dat for output?

Q. Which of the following will store the letter H in a Character variable named initial?

Q. Which of the following creates a String named constant called partNo, whose value is AB45?

Q. The function strcmp("Jose", "JOSE") will return _____

Q. The standard output stream, which refers to the computer screen, is called

Q. Which of the following is a string literal constant?

Q. Which is an instantiation of the basic_string class template?

Q. Which character is used to terminate the string?

Q. How does the strings are stored in the memory?

Q. Where are the strings stored?