Answer to Question #205192 in C for Tom Boyle

Question #205192

1. C language is an example of imperative / procedural language, but since it is old (no OO or functional programming allowed), is no more required to industry.

True or False

2. Considering an ANSI C compiler what can represent a lexical error?

a. a = )a+(b;

b. a = 0.0a;

c. if (a=3) a++;

d. a = α{"version":"1.1","math":"α"}~b;



1
Expert's answer
2021-06-13T00:03:46-0400
  1. False. This because C language is required in industry to make various operating systems. Most underlying structure of database management system are being developed in C programming language.
  2. a) The opening and closing bracket can result in a lexical errors because closing bracket comes after assign sign.

b) 0.0a can represent a lexical error because there is no operator between 0.0 and a, and it's lexically correct to assign a variable to itself.

c) if (a=3) a++: This will represent an error because a=3 is not a condition since a is being assign to a instead of comparing a to 3 (a==3)

d) a = α{"version":"1.1","math":"α"}~b; There will be an error because α is not known


Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS