Hi
Can somebody show me how to use IF operator with &&(And)
I have a code
Code:void request(FILE *in) {char c, mas[10]; int i,k; clrscr(); printf("Enter MAS.. : "); scanf("%s",mas); printf("\nEnter K: "); scanf("%d",&k); in=fopen("text.dat","rb"); i=1; fread(&t,sizeof(t),1,in); while (!feof(in)) {if (strcmp(t.name,mas)==0)&&(t.price,k)==0) //so here my problem. I need to use AND here printf("\n %-3d\t %-10s\t %-2d\t %-2d", i, t.name, t.price, t.ball); fread(&t,sizeof(t),1,in); i++; }