Q:

How do you convert this char array to string ?? char str[]={'g','l','o','b','y'};

A) str[]={'g','l','o','b','y',''}; B) str[5] = ''
C) str[5] = 0; D) All the above
 

View Answer Explanation

Category: C Language MCQ
Sub Category: Strings

29