1. Home
  2. Computer Science MCQs
  3. C Programming
  4. Which header declares strcpy() and strcmp()?

Added 30 Nov -0001

Which header declares strcpy() and strcmp()?

  1. string.h Correct answer
  2. stdio.h
  3. stdlib.h
  4. ctype.h

Correct answer

A. string.h

12 views

MCQSEXAM

Explanation

The string handling functions strcpy, strcmp, strcat and strlen are declared in string.h.

Reference

Asked in: NTS, PPSC IT, Campus Interviews

Preparing for an exam?

Doubts & discussion

Not sure why the answer is A? 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