(A Warning in C )(C4047) How can i fix it? like the title, I am write a function
ID: 3666741 • Letter: #
Question
(A Warning in C )(C4047)
How can i fix it?
like the title, I am write a function code which is to determines if the character in a file call "input.dat" file is an alpha or digit character.if it is ture it will return Alnum(I #difine to a number 8)
how can i fix it? what is the best way to express?
what if i use or statement? ||? how to do?
204 int is alnum(char character) 205 206 207 208 209 218 211 212 213 214 215 int result = 0; if (character"SC) result A|num; = else if dcharacter-"%d") result Alnum; return result; rror List -t 0 Errors2 Warnings 0 Messages Build + IntelliSense Sea Line 207 211 Entire Solution Code Description C4047 '==': 'int' differs in levels of indirection from 'char [3] =': 'int' differs in levels of indirection from 'char [3]' Project PA3 PA3 function.c function.cExplanation / Answer
This can be fixed by following method
if(character>='0'&&character<='9') -> means numeric
if(( character>='a'&&character<='z') || (character>='A' &&character<='Z' )) -> means letter
Related Questions
Navigate
Integrity-first tutoring: explanations and feedback only — we do not complete graded work. Learn more.