answersLogoWhite

0


Best Answer

Indenting is a good habit to inculcate while writing any type of code

Although indentation is not mandatory and will never affect the working of your programme in C++ it makes the code more easy to read and debug especially for larger programmes. Most IDE's eg eclipse automatically indent the code as you type.

User Avatar

Wiki User

13y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the need for indentation in while writing a c plus plus program?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Why is it necessary to use indentation and space in java statement?

The Java compiler doesn't need this, and in fact doesn't care. It is important to improve the readibility of the program for human programmers. Even with correct indentation, interpreting a computer program can be confusing. Without proper indentation and spacing, it will be much, much worse.


What is the first phase in a free software project?

The person identifies a need and begins writing a program.


How do you write an essay on why the south seceded from the union?

Generally you first need a pen and paper or some other writing method. Then you need to think for a while about what your main points are, and then you start writing.


A four letter word for a depression or indentation?

dent


Why would you need a business plan while expanding?

I need a template so that I may be guided when I am writing my business plan


How can you write a c program to display numbers in ascending order in array?

I know how to do this and you need to know how to do this. Why don't you do your best at writing this program and if it does not work then ask for help. You will not learn anything if I give you the answer.


Does a mechanical engineer need to know programming in terms of writing your own code?

If he intends to write his own code then it stands to reason he would need to know how to program.


Can you delete songs from a CD?

Yes. If you look at the non-picture side of the DVD then you can see the indentations caused by the laser writing the songs on the disk. Each circular indentation around the CD is the equivalent of one song. You just need to count the number of indentations to reach the track number you want to delete, then fill that whole circular indentation with clear nail polish. Your CD player will now not recognise the track and it won't play it.


What do Chaplains do at hospitals?

While writing a research paper on chaplain roles, I need a hypothesis and wanted advice


How is computer programming in terms of writing code related to writing a paper?

It is quite unrelated. About the only similarity is that you use your keyboard. Instead of writing prose, in computer programming you have to write very precise instructions; if you commit some error, the program will not run properly. It might go into an infinite loop, for example, meaning that you need to interrupt the program forcefully.


Do you need to be a part of the ib program to get into the university of alberta?

No, you don't. While taking the IB program can be beneficial, depending on the area you wish to pursue, it isn't a requirement for admission.


What do I need to know about a creative writing degree?

The best way to learn about a creative writing degree would be to attend a school that offers it and enter their degree program. You can search on FastWeb for colleges that offer that degree, and research your options from there.