Given the following declarations, which of the following is legal syntax?
String str="Your name";
Char c_string[20]="My name";
A) str = c_string;
B) c_string = str;
C) strcpyc_string, str.c_str) ) ;
D) strcpyc_string, str) ;
E) A and C
Correct Answer:
Verified
Q55: Which of the following returns the fourth
Q56: To declare a c-string and initialize it
Q57: The base type for a vector can
Q58: When the extraction operator is used to
Q59: What is the difference between strcmp and
Q61: What is the value of numbers.size) after
Q62: Given the following code, what is the
Q63: What is the value of numbers.size) after
Q64: In a vector, which of the following
Q65: If the capacity of a vector named
Unlock this Answer For Free Now!
View this answer and more for free by performing one of the following actions
Scan the QR code to install the App and get 2 free unlocks
Unlock quizzes for free by uploading documents