Find the warning in this C code, something unused warning it is showing, find out?


Warning: Trying to access array offset on false in /home3/indiakep/public_html/wp-content/plugins/dw-question-answer/inc/Template.php on line 8
All QuestionsCategory: C LanguageFind the warning in this C code, something unused warning it is showing, find out?
Chetan Shidling Staff asked 6 years ago

Code:

#include<stdio.h>
int main()
{
int n,m;
printf(“enter number\n”);
scanf(“%d”,&n);
if(n%2==0)
{
printf(“the number is even\n”);
}
else
{
printf(“the number is odd\n”);
}
printf(“thank you\n”);
return 0;
}

Comment what warning this code is giving.