Syntax to initialize a string is.
Answers
Answered by
1
A more convenient way to initialize a C string is to initialize it through character array: char char_array[] = "Look Here"; This is same as initializing it as follows: char char_array[] = { 'L', 'o', 'o', 'k', ' ', 'H', 'e', 'r', 'e', '\0' };
⭐♥️ Please Mark Me As Brainliest ♥️⭐
Answered by
1
Answer:
Two ways:
String var_ name =string literally.
String var_name =new string ();
Similar questions