Computer Science, asked by Tushar38015, 9 months ago

Syntax to initialize a string is.​

Answers

Answered by Jasdeep145
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 Tushar3801
1

Answer:

Two ways:

String var_ name =string literally.

String var_name =new string ();

Similar questions