1.

Is there any difference between the usage of the size() and the length() function?(a) Yes(b) NoThis question was posed to me in an interview for internship.My question comes from String Manipulation in section Arduino Programming of Arduino

Answer»

Right ANSWER is (b) No

Easy explanation: The SIZE() and LENGTH() FUNCTIONS both return the number of characters that constitute the string given and can be USED interchangeably from a utilitarian standpoint. There is absolutely no difference between the two functions.



Discussion

No Comment Found

Related InterviewSolutions