Mask-group

Practice Question



Fill in the blanks:

  1. "A" is a ___________ while ’A’ is a ____________. 

Ans: "A" is a string while ’A’ is a character. 

  1. A string is terminated by a ______ character, which is written as ______.

Ans: A string is terminated by a null character, which is written as \0.

  1. The array char name[10] can consist of a maximum of ______ characters. 

Ans: The array char name[10] can consist of a maximum of 9 characters. 

  1. The array elements are always stored in _________ memory locations. 

Ans: The array elements are always stored in contiguous memory locations.