i want the user to enter 50 names. i want to see if there is a match using strcmp but it wont work. any suggestions?
Code:#include <stdio.h> #include<string.h> int main() { char string[50]; char strcmp[50]; int i; printf("enter 50 names\n"); for(i=1;i<=50;i++) { scanf("%s",&string); } strcmp(); if(strcmp==0) { printf("we have a match"); } return 0; }