proper indentation

This is a discussion on proper indentation within the C Programming forums, part of the General Programming Boards category; How can I better indent this?
Code:
//preprocessor directives
#define _CRT_SECURE_NO_DEPRECATE
#include<stdio.h>
int main()
{
//declare and initialize variables
int ...

Also, notice that there is not optimum way of indenting your code. It has to do with what you are used to see. However, there is a common axis where all indentations styles divert from. Take a look here for styles of indentation. The link was found in the signature of Codeplug.

Normally all lines at the same control level are at the same column, and extra indentation is used for continuing long statements onto the next line
Also if you have comments I think its usually easier to read and edit to put them on their own line

1) Name variables in ways that reflects what they mean. A variable named doubleValue tells the reader nothing about what what the value of the variable means. A variable named SpeedOfCarInKPH is more informative. Similarly the names myFile and myOtherFile are uninformative of anything (except of the fact that your code has grown, rather than been constructed for clarity).

2) Break the code into smaller functions that do some specified task. Choose the names of those functions carefully. An fopen() call, a series of fprintf()'s, and a fclose() can (often) logically be placed into their own function. Named, something like WriteSixDefaultValuesToFile(). Similarly, choose names of function arguments carefully, so they give useful information about what the argument represents. An argument named OutputFileName is more informative than an argument named fname.

3) Don't comment things unless absolutely necessary to explain something that is not self-explanatory in the code. In fact, strive to have your functions, variables, constants, etc named well enough that they document themselves. Comments like "preprocessor directives" or "declare and initialize variables" will be superfluous if you do such things right. The goal is to provide enough information that you (or someone else) knows what the code achieves, not to add comments that state the obvious.

If I seem grumpy or unhelpful in reply to you, or tell you you need to demonstrate more effort before you can expect help, it is likely you deserve it. Suck it up, Buttercup, and read this, this, and this before posting again.