Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question : Identify lexical, syntax and semantic errors from the following C program. Write line number, error message, and type of the error for each

Question : Identify lexical, syntax and semantic errors from the following C program. Write line number, error message, and type of the error for each error in the program

01: float Factorial(int N) {

02: float F;

03: F==1;

04: while(i

05: F*=i;

06: return F

07: }

08: Void mane()

09: integer r;

10: r=Factorial(5);

11: IF(r>0)

12: PrintResult(r);

13: }

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