Which of the following are valid array declaration?

Options
- char str1[3] = “ab”
- char str1[3] = “abc”
- char str1[2] = “ab”
- char str1[0] = “ab”


CORRECT ANSWER : char str1[3] = “ab”

Write your comments

 
   
 
 

Enter the code shown above:
 
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)


Advertisement