From ca5e153c6d8d09302efb6c393c12edc095e0d7e5 Mon Sep 17 00:00:00 2001 From: Ajay T Shaju Date: Mon, 18 Sep 2023 21:10:32 +0530 Subject: [PATCH] initial --- README.md | 2 +- languages/C.md | 8 +++++++- languages/C.txt | 5 ----- 3 files changed, 8 insertions(+), 7 deletions(-) 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