Can the "if" function be used in comparing strings?

4 years ago
C Programming

No. "if" command can only be used to compare numerical values and single character values. For comparing string values, there is another function called strcmp that deals specifically with strings.

1
Sanisha Maharjan
Jan 20, 2022
More related questions

Questions Bank

View all Questions