Question: Consider a fictitious programming language containing only two numerical types (integer and real), in which arbitrarily long (possibly empty) 1-dimensional arrays of numbers are declared,
Consider a fictitious programming language containing only two numerical types (integer and real), in which arbitrarily long (possibly empty) 1-dimensional arrays of numbers are declared, instantiated, and initialized in a single statement, two of which are given below:
integer[] numbers = { 1, 5, 7, 9, 10 };
real[] reals = { 2.0, 3.35, 1.24, 54.145, -4.9 };
Copy and pasting will be a down vote as it is probably not the right answer.
Grammar must be in EBNF not BNF. If it is in BNF I will down vote.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
