+ 9
[solved]Why this code is showing warning.
If I use the condition if(a[i]=='x') instead of if(*(a+i)=='x') in the following code. It is showing some warning. Can any one explain how to correct it.. here I used this condition for checking equality of letter 'a' in the code below. Here x is some alphabet https://code.sololearn.com/cPGorQ1IjH56/?ref=app
4 Respostas
+ 2
You declared I as char, not int.
+ 4
Thanks sir I didn't notice that..
+ 4
Thanks a lot
+ 1
You're welcome..
Good practice. Nice code..