|
Example for the structure and naming conventions. Let's discuss a small basic example for naming conventions and structuring of the program. This is a small code snippet written in C. (Without any structure, naming conventions and comments) #include <stdio.h>
int main(void){int a;int b;int c;int i; Above program will compile and run successfully but the thing is, if you give it to the other user to modify or understand then it will be very difficult for him/her. This one is really very small example but we have to think for the big programs where some thousand kilo lines of code is available. Let's modify it in a way that it looks in following way. #include <stdio.h>
int main(void) Well... this one looks nice but if you add comments also to describe each and every variable and steps then you can see the difference.
/* Program Author : Narendrakumar Padmani #include <stdio.h> //header files Standard input/output
int main(void)
//Program entry point Finally in the last one you can see all the things looks very professional and readable and |
We do not provide any software crack tools or hack tools.