I am making this code but it gives error.
the compiler says : syntax error before printf at line no 9.
any help in this regard ?
Code:
#include <stdio.h>
#include <stdlib.h>
int main()
FILE *fp1 ,*fp2;
char ca , cb;
int i,j;
char A[i][j],B[i][j],x[i][j];
char file1[1024],file2[1024];
printf(" Enter file1: ",file1);
gets(file1);
printf("Enter file2: ",file2);
gets(file2);
fp1=fopen(file1,"r");
if ( fp1 == NULL )
{
printf("Cannot open %s for reading \n", file1 );
exit(1);
while ((fgets(fp1)!=EOF)
{
for(i=0,i<2500,i++)
{
for(j=0,j<5,j++)
}
fscanf(fp1,"%s",&A[i][j])
}
fp2=fopen(file2,"r");
if ( fp2 == NULL )
{
printf("Cannot open %s for reading \n", file2 );
exit(1);
}
while ((fgets(fp1)!=EOF)
{
for(i=0,i<2500,i++)
{
for(j=0,j<5,j++)
}
fscanf(fp2,"%s",&B[i][j])
}
x[i][j]=strcmp(A[i][1],B[i][1]);
if(x=0)
{
printf("%s /n %s " x[i][j])
}
fclose(fp1)
fclose(fp2)
return 0;
}