Top
/
C++
/
Types and Experessions
/
Characters
/
Answer-char-4
Answer to Question char-4
No, it is not acceptable because character constants should be written as character constants, not as integers. Use
if(c == '\n') { ... }