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.
Sanisha Maharjan
Jan 20, 2022