ifstatement

Forum discussion tagged with ifstatement.
  1. B

    How do I replace two a's in a string with an '*'

    Hey guys so for my assignment I have to replace two a's with an '*' from a string of unknown input length in C. The challenge is I am only allowed to use the getchar() and the putchar() function. With an array it would have been easier but I am not even allowed to use that. I am just allowed to...