What does strcpy copy into the destination buffer?
-
A
Only the source characters, no null
-
B
At most n characters from the source
-
C
The address of the source string
-
D
The source characters and its null byte
Correct answer
Correct answer
D. The source characters and its null byte
11 views
Explanation
strcpy copies the source up to and including its terminating null character.
Reference
Asked in: NTS, PPSC IT, Campus Interviews
Doubts & discussion
Not sure why the answer is D? Ask here and get an explanation.
Ask a doubt about this MCQ