Answered step by step
Verified Expert Solution
Question
1 Approved Answer
COMP 1 4 1 : Language Design Criteria Instructions: In this exercise, we are going to review different PL design criteria. 1 Commenting in C
COMP : Language Design Criteria
Instructions: In this exercise, we are going to review different PL design criteria.
Commenting in C
There are two mechanisms in C to declare comments:
Commenting in a single line using at the beginning, and
Commenting in potentially multiple lines using to mark the beginning and to mark the ending.
For each of the following criteria, argue which commenting mechanism is more preferred.
readability,
writability, and
reliability
Explicitlytyped vs implicitlytyped PLs
In explicittyped PLs the programmer is supposed to annotate each data container with some type. This is
while, in implicitlytyped PLs there is not such restriction for the programmer. Compare how this language
feature affects the following criteria:
syntax conciseness,
maintainability, and
expressiveness
Semantic safety in C vs Java
Consider the following program in C Run it and report the result.
int main
int arr;
cout
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started