aliensbrain
  • Home
  • Study
  • Quizzes
  • 🎤AI Practicefree
  • Notebooks
  • Community
  • Sign in
  • Programming in 'C'
  • Which of the following string handling functions in 'C' c...
Multiple choice

Which of the following string handling functions in 'C' compares the first n characters of two input strings?

  1. strcmp()

  2. strncmp()

  3. strncpy()

  4. none of these

Reveal answer Fill a bubble to check yourself
B Correct answer
Explanation

This function in 'C' compares the first n characters of two input strings.

Keep practicing — related questions

  • Which of the following string functions is used to compare first n characters of the given two strings?
  • Which of the following string handling function in 'C' searches for a specified character in the string?
  • Which of the following string functions is used to copy first n characters of one string to another string?
  • Which of the following string handling functions in C is used to reverse the characters in a string?
  • Which of the following string functions in 'C' searches for a specified character in the string?
  • Which of the following library functions is used to compare two strings and give appropriate results?
  • Which of the following formatted input functions is used to read strings in 'C'?
  • The strcmp function is used to __________.
Play the full quiz 🎤 Practise this topic out loud

Practice this topic

  • Programming Fundamentals (2381 questions)
Advertisement
© Aliensbrain | all rights reserved
  • About
  • Contact
  • Terms and Condition
  • Privacy Policy