Communities for your favorite technologies. Explore all Collectives
Stack Overflow for Teams is now called Stack Internal. Bring the best of human thought and AI automation together at your work.
Bring the best of human thought and AI automation together at your work. Learn more
Find centralized, trusted content and collaborate around the technologies you use most.
Stack Internal
Knowledge at work
Bring the best of human thought and AI automation together at your work.
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).
nev
Thanks in advance guys!
char
nev[i][0]
""
nev[i][0]=0;
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
Add a comment
Required, but never shown
By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.
Start asking to get answers
Find the answer to your question by asking.
Explore related questions
See similar questions with these tags.
nevis a 2-dimensional array ofchar, thennev[i][0]is achar. But""is an array ofchar, not achar.nev[i][0]="";-->nev[i][0]=0;""represents an array ofchar, yes, but furthermore, like any array it is converted to a pointer to its first element when evaluated. That's where the pointer comes from.