Omkar Shetkar wrote:
Expected Output:
strcmp(indira,ujwal): -12
strcmp(indira,chandan): 6
indira < ujwal
indira > chandan
Why are -12 and 6 the expected outputs? The man page says (vaguely) that the return values are 0, some value greater than zero, or some value less than zero. I somehow remember them as -1, 0 and 1, but I may be getting that from other languages.