Multiple choice technology programming languages

string s="tcs". This is a valid c++ syntax.

  1. True

  2. False

Reveal answer Fill a bubble to check yourself
A Correct answer
Explanation

This is valid C++ syntax because the string class has a constructor that accepts a const char* parameter. The double-quoted string literal "tcs" is automatically converted to a char array, which the string constructor can initialize from.