Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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

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 [Marks: 4]
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

Spatio Temporal Database Management International Workshop Stdbm 99 Edinburgh Scotland September 10 11 1999 Proceedings Lncs 1678

Authors: Michael H. Bohlen ,Christian S. Jensen ,Michel O. Scholl

1999th Edition

3540664017, 978-3540664017

Students also viewed these Databases questions