1.

Is an array of characters always a string?(a) Yes, always(b) Yes, if each character is terminated by null(c) No, since each character is terminated by null(d) No, neverI got this question by my school principal while I was bunking the class.This interesting question is from Object Array topic in chapter Object of Object Oriented Programming

Answer»

Correct answer is (d) No, never

The explanation is: The character arrays are not the same as STRING. The string once CREATED then remains the same. The character array values MAY change.



Discussion

No Comment Found

Related InterviewSolutions