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(i0) 12:      PrintResult(r); 13: }

Programming Logic & Design Comprehensive
9th Edition
ISBN:9781337669405
Author:FARRELL
Publisher:FARRELL
Chapter3: Understanding Structure
Section: Chapter Questions
Problem 20RQ
icon
Related questions
icon
Concept explainers
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<F)

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: }

Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Operators
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Programming Logic & Design Comprehensive
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr