Chapter - 10: Strings

Fill in the blanks.


C
Sections
1
Exercises

(a) "A" is a ___________ while ’A’ is a ____________. 
Ans: string, character

 

(b) A string is terminated by a ______ character, which is written as ______. 
Ans: NULL, '\0'

 

(c) The array char name[10] can consist of a maximum of ______ characters. 
Ans: 9 characters and 10th character space is for \0 character.

 

(d) The array elements are always stored in _________ memory locations. 
Ans: contiguous

 


© 2020 Garbage Valuegarbage value logo