Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Exercise #3: a. Using Geany, write the following C program as is: #include inx main (void) 4 int a - 3; b-4, e; Double f

image text in transcribed
Exercise #3: a. Using Geany, write the following C program as is: #include inx main (void) 4 int a - 3; b-4, e; Double f = 4, c, d; d = a + b; cea / (f - b); printf (The value of d is d" , d) return (0) b. Compile the program. c. This program contains syntax errors. On a piece of paper, indicate each one of them and make the appropriate corrections. d. Write your answers in a text file. e. Try to correct the errors. Compile and build the program with all the corrections made. f. Once the syntax errors have been corrected, there are two errors that remains when you try to run it (one is called a runtime error because you are trying to do something illegal, the other is a logic error because you made a small mistake in the program). What are they? Tell your TA or ask for hints! g. Correct the errors and compile and run the program again. What value of d is displayed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

2 What supply is and what affects it.

Answered: 1 week ago