Question: Compile, debug (find and fix any syntax errors), and execute the program and fix any semantic errors: Here is the proper question. Also, note, that

Compile, debug (find and fix any syntax errors), and execute the program and fix any semantic errors:

Compile, debug (find and fix any syntax errors), and execute the program

Here is the proper question. Also, note, that this is a .C program and we are supposed to do this on PuTTY

and fix any semantic errors: Here is the proper question. Also, note,

/* This C program demonstrates the switch statement without using breaks. */ * The program is tested on MS Visual C+ platform include #pragma warning(disable : 4996) it void main() ( char ch; int f, a = 10, b = 20; printf("ch cn", ch); switch (ch) case '+': f a + b; printf("f-%d ", case .-': f = a - b; printf("f = %d ", case .*.. f-a * b; printf( "f %d ", case ./. f = a / b; printf( "f = %d ", default: printf("invalid operator "); f); f); f); f); Rrintf("sh-%c ", sh) ; switch (ch) case .+': f- a + b; printf("f %d ", case .-': f- a - b; printf("f = %d ", case .*.. f- a * b; printf("f = %d ", case : f = a / b; printf("f = %d ", default: printf("invalid operator "); f); f); f); f); printf("sh-%c ", sh) ; switch (ch) case .+. : f- a + b; printf("f = %d ", case .-': f = a - b; printf("f = %d ", case .*.. f- a * b; printf("f %d ", case : f- a / b; printf("f-%d ", default: printf("invalid operatorIn") f); f); f); f); printf("ch= %c ", Ch); switch (ch) case .+': f a + b; printf( "f = %d ", case .-': f = a - b; Rrintf("f = %d ", case .*.. f- a * b; printf("f = %d ", case ./. : f- a / b; printf("f = %d ", default: printf("invalid operator "); f); f); f); f); printf("ch = %c ", Ch); switch (ch) { case .+': f- a + b; printf("f = %d ", case .-': f- a - b; Rrintf("f-%d ", case .*.. f- a * b; printf("f-%d ", case .,.: f = a / b; Rrintf("f-%d ", default: printf("invalid operator "); f); f); f); f)

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!