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')
  {
    ...
  }