Multiple choice

How can we define the String?

  1. char ch [5]

  2. char string_name [size]

  3. char string_name [size]

  4. data_type variable_name

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

In this 'size' means how many characters can be hold in string. For example to define a string name of 10 character we can write char name[10]; hence, this option is correct.