Computer Science, asked by mahima1516, 1 year ago

In C++ programming strcmp() function is used for
(1) converting String to Char (2) copying two strings
(3) comparing two strings
(4) none of these.

Answers

Answered by Anonymous
2

==============ⓢⓦⓘⓖⓨ

\huge\mathfrak\red{hello...frd\:swigy\:here}

==============ⓢⓦⓘⓖⓨ

QUESTION:-

In C++ programming strcmp() function is used for

(1) converting String to Char (2) copying two strings

(3) comparing two strings☑☑

(4) none of these.

______________❤❤

CORRECT ANSWER IS (3).

RELATED INFORMATION:-

The syntax of the strcmp() function is: Syntax: int strcmp (const char* str1, const char* str2); The strcmp() function is used to compare two strings two strings str1 and str2 . If two strings are same then strcmp() returns 0 , otherwise, it returns a non-zero value.

I HOPE IT HELP YOU____❤❤

=======================

<marquee behaviour-move bigcolour-pink><h1>☺ThankYou✌</h1></marquee>

·.¸¸.·♩♪♫ ⓢⓦⓘⓖⓨ ♫♪♩·.¸¸.·

___________♦♦⭐♦ ♦___________

Similar questions