Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Two contrasting viewpoints on the declaration of comments in a programming language are represented by Ada and C. In Ada, comments begin with adjacent hyphens
Two contrasting viewpoints on the declaration of comments in a programming language are represented by Ada and C. In Ada, comments begin with adjacent hyphens and end with the end of the line.
-- this is an Ada comment
In C, comments begin with /* and proceed to a matching */ :
/* this is an C comment */
Compare these two comment features with respect to readability, writability, and reliability. C++ added a comment convention ( two forward slashes) similar to that of Ada. Why didnt C++ use exactly the Ada conversation ?
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