C Language Q & A #4
How does the compiler see spaces, and how many tabs should be used ?
- The compiler usually skips over spaces, and other “white space” (tabs, line feeds, etc.) in your program. The compiler only concentrates on the code elements, not how they are formatted on the page. Tabs are used for stylistic reasons, to allow other people to see the groupings of logic in your program (but the compiler does not care). Use tabs to show a block of logic in your program (more on this when we get to loops and branching). For now, keep all the statements indented at the same level.