c- assignment makes integer from pointer without a cast

164 Views Asked by At

I got a warning:

assignment makes integer from pointer without a cast.

The line that triggers the warning is:

nev[i][0]="";

The nev variable is a 2 dimension char block(please don't ask why, I don't know).

Thanks in advance guys!

1

There are 1 best solutions below

0
On BEST ANSWER

If nev is a 2-dimensional array of char, then nev[i][0] is a char. But "" is an array of char, not a char. – Barmar

nev[i][0]=""; --> nev[i][0]=0; – BLUEPIXY