answersLogoWhite

0

The comments are there to (a) aid in debugging the program, (b) help the programmer layout the program in logical steps and (c) show anyone else looking at the code to see what each section of the code actually does.

User Avatar

Wiki User

7y ago

What else can I help you with?

Related Questions

Importance of liveware to the computer system?

The computer system cannot do everything by itself. So there must be an interaction between hardware and software. The computer programmers and the computer operators are the liveware. If there were no liveware there will be no computers.


What is the purpose of using comments in c plus plus?

Comments are to help other programmers (or yourself in the future) to understand what is going on in a program, especially when the code itself is complicated and may not be obvious. More time is spent maintaining and improving programs than original development, so leaving clear comments is very important!


Are algorithms only meant for computers?

No. Indeed, algorithms are actually meant for humans, not computers. Computer programmers translate algorithms into working code such that a computer can process the algorithm. The code is actually the implementation of the algorithm, not the algorithm itself.


In c languages ends with an END word?

In C languages, the use of the word "END" is not a standard or reserved keyword. However, it can be used as a user-defined identifier in comments, variable names, or function names. For example, programmers might use "END" in comments to signify the conclusion of a section of code. Additionally, some C-like languages or frameworks may have their own conventions where "END" is utilized, but this is not intrinsic to the C language itself.


What is an omibia computer virus?

A piece of code that attaches itself to a file to spread itself from computer to computer.


Is YouTube inappropreate?

YouTube itself is not inappropriate, though many videos and comments on the site are.


What does virus mean in computer language?

A computer program that is designed to replicate itself by copying itself into the other programs stored in a computer.


What are computer can not do?

computer can't taking decision on itself.


What is a computer program that can copy itself and infect a computer?

Virus and worms.


What does it mean when your competer reboots itself?

Guessing you mean computer: Rebooting is when a computer shuts itself down and then turns itself on Rebooting can be required after you install updates or download software.


HOW can a computer turn off by itself?

A computer can not turn off by itself. The monitor just turns blank it you leave it. To turn off the computer you have to prees the on button on your computer. If you press the botton on the monitor it is not turning the computer off... just the screen.


Why do you need to use comments in a C program?

Preferably as little as possible, however it depends on the language. Low-level languages require a vast amount of user-comments because it can be extremely difficult to read the logic from the code alone. High-level languages require very few comments because the code should be largely self-documenting. Languages like C++ allow you to express concepts and ideas directly in code, so there's very little you need to document with a comment. Choosing good names for functions, classes and variables is a vital aspect of creating readable code.