Answered step by step
Verified Expert Solution
Link Copied!

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 141: Language Design Criteria
Instructions: In this exercise, we are going to review different PL design criteria.
1 Commenting in C
There are two mechanisms in C to declare comments:
1. Commenting in a single line using // at the beginning, and
2. 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
2 Explicitly-typed vs. implicitly-typed PLs
In explicit-typed PLs, the programmer is supposed to annotate each data container with some type. This is
while, in implicitly-typed PLs there is not such restriction for the programmer. Compare how this language
feature affects the following criteria:
syntax conciseness,
maintainability, and
expressiveness
3 Semantic safety in C++ vs. Java
1. Consider the following program in C++. Run it and report the result.
int main(){
int arr[3]={1,2,3};
cout<

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

Intranet And Web Databases For Dummies

Authors: Paul Litwin

1st Edition

0764502212, 9780764502217

Students also viewed these Databases questions

Question

=+what information would you need about the compact disc industry?

Answered: 1 week ago