Comprog Final Reviewer 1
Comprog Final Reviewer 1
6. strcmp - compare two strings. Case sensitive. Note: Returns 0 if strings are
identical.
e.g
variable3=strcmp(variable1,variable2);
variable1 = 'Ok'
variable2 = 'Ok'
Therefore the return value of variable3 = 0
variable1 = 'Ok'
variable2 = 'Ok'
Therefore the return value of variable3 = 1
if the strncat has 3 maximum letter length and your variable 1 and 2 have the following
letters:
variable1 = 'Chicken'
variable2 = 'Inasal'
variable1 = 'Manok'
variable2 = 'Hatdog'