diff --git a/README.md b/README.md index 984ca00..5191b89 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ Feel free to take a look. You might learn new things. They have been designed to #### Imperative -- [C](languages/C.txt) +- [C](languages/C.md) - [C#](languages/C%23.txt) - [Go](languages/golang.md) - [Java](languages/java.md) diff --git a/languages/C.md b/languages/C.md index a435ccb..5b04aa2 100644 --- a/languages/C.md +++ b/languages/C.md @@ -1 +1,7 @@ - \ No newline at end of file + + +main() Function + +* The main() function is the starting point of the program: ```int main (int argc, char *argv[])``` +* The return type of the main() function is an integer (type int) and it is known as the ```return value``` of the program. +* As a rule of thumb, ```value 0 means success while non-zero means an error conditions.``` diff --git a/languages/C.txt b/languages/C.txt index b33c3a5..8ff450d 100644 --- a/languages/C.txt +++ b/languages/C.txt @@ -1,8 +1,3 @@ -main() Function - -* The main() function is the starting point of the program: int main (int argc, char *argv[]) -* The return type of the main() function is an integer (type int) and it is known as the return value of the program. -* As a rule of thumb, value 0 means success while non-zero means an error conditions. Include Files