2808 explained code solutions for 75 technologies


cCheck if both strings are equal


#include <string.h>
strcmp(x,y);ctrl + c
include <string.h

Name of library to be included

strcmp(x,y)

Function to compare if both strings are equal. Returning 0 if so, a number greater than 0 if x is greater than y and a number lower than 0 if y is greater than x