//What i am doing wrong in the strcmp line!I still cant understand it and i am here for so many hours!Help
The compiler doesnt give me any errors or warnings
The compiler doesnt give me any errors or warnings
Code:
#include <stdio.h>
#include <stdlib.h>
#define SIZEX 45
int main() {
char *a[50][7];
a[0][4]="kosvid";
int flag=0;
int x;
char z[10];
printf("Please enter the username \n");
scanf("%s",z);
for(x=0;x<=SIZEX;x++)
{
if(strcmp(a[x][4],z)==0)
{
flag=1;
}
}
return 0;
}
Comment