How can I remove these warnings?
char foo[10], msg2[100];
int k;
for (k = 0; foo[k] != NULL; k++) //comparison between pointer and integer
msg2[k] = NULL; //assignment makes integer from pointer without a cast
Thanks.
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
Assign an integer to an integer variable, instead of a pointer. NULL is a pointer. It is usually defined as: