Question: 2. The following program displays the message Hello there! regardless of the letter input. Determine where the error is and, if possible, why the
2. The following program displays the message Hello there! regardless of the letter input. Determine where the error is and, if possible, why the program always causes the message to be displayed. #include int main() { char letter; printf("Enter a letter: "); &letter); scanf("%c", if (leter = 'm') printf("Hello there!"); return 0; }
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
