adplus-dvertising
frame-decoration

Question

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

a.

assign

b.

copy

c.

string

d.

strcpy

Answer: (d).strcpy

Engage with the Community - Add Your Comment

Confused About the Answer? Ask for Details Here.

Know the Explanation? Add it Here.

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

Similar Questions

Discover Related MCQs

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?

Q. What will happen if a string is empty?

Q. Which header file is used to manipulate the string?

Q. How many maximum number of parameters does a string constructor can take?

Q. Which constant member functions does not modify the string?

Q. What is the difference between unsigned int length() and unsigned int size()?