R

Ram Sharma • 193.86K Points
Coach

Q. How do you convert this char array to string?

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

No solution found for this question.
Add Solution and get +2 points.

You must be Logged in to update hint/solution

Discusssion

Login to discuss.


Question analytics