1.

What is the minimum number of arguments that the strcpy() function accept?(a) 4(b) 3(c) 2(d) 1The question was posed to me in an interview for job.This interesting question is from String Manipulation in chapter Arduino Programming of Arduino

Answer»

The correct answer is (c) 2

To explain: The strcpy() function is used to COPY the contents from one String variable to another. Hence it requires a minimum of TWO arguments that INCLUDE the source variable (The variable from WHOSE contents NEED to be copied from) and the destination variable (The variable to which the contents are to be copied to).



Discussion

No Comment Found

Related InterviewSolutions