1. Home
  2. Computer Science MCQs
  3. C Programming
  4. What does strcpy copy into the destination buffer?

Added 30 Nov -0001

What does strcpy copy into the destination buffer?

  1. Only the source characters, no null
  2. At most n characters from the source
  3. The address of the source string
  4. The source characters and its null byte Correct answer

Correct answer

D. The source characters and its null byte

11 views

MCQSEXAM

Explanation

strcpy copies the source up to and including its terminating null character.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is D? Ask here and get an explanation.

Ask a doubt about this MCQ

Shown after review. No links please.

More C Programming MCQs

Practise all C Programming MCQs

Similar MCQs