The following program compiles but does not perform as expected. • What happens? (1 pt) • Why does this happen? (2 pts) How can this be resolved? (1 pt) #include #include int main (void) { char...


C programming!


The following program compiles but does not perform as expected.<br>• What happens? (1 pt)<br>• Why does this happen? (2 pts)<br>How can this be resolved? (1 pt)<br>#include <stdio.h><br>#include <string.h><br>int main (void) {<br>char userChar1;<br>char userChar2;<br>printf(

Extracted text: The following program compiles but does not perform as expected. • What happens? (1 pt) • Why does this happen? (2 pts) How can this be resolved? (1 pt) #include #include int main (void) { char userChar1; char userChar2; printf("Enter a character: \n"); scanf("%c", &userChar1); printf("Enter another character: \n"); scanf("%c", &userChar2); printf("First character = %c, Second character = %c", userChar1, userChar2); return 0; }

Jun 09, 2022
SOLUTION.PDF

Get Answer To This Question

Related Questions & Answers

More Questions »

Submit New Assignment

Copy and Paste Your Assignment Here