From 9d0f759d15f2879e1b28c1c80bea7a244e7483cb Mon Sep 17 00:00:00 2001 From: Sadeep Madurange Date: Sun, 14 Nov 2021 18:07:03 +0800 Subject: Add comments. --- 1/1.c | 2 ++ 1/2.c | 2 ++ 1/3.c | 2 ++ 1/4.c | 2 ++ 4 files changed, 8 insertions(+) (limited to '1') diff --git a/1/1.c b/1/1.c index b5e0198..5cf53fd 100644 --- a/1/1.c +++ b/1/1.c @@ -1,5 +1,7 @@ #include +/* Prints the famous "hello, world" string */ + int main(int argc, char *argv[]) { printf("hello, world\n"); return 0; diff --git a/1/2.c b/1/2.c index 4850f83..182975e 100644 --- a/1/2.c +++ b/1/2.c @@ -1,5 +1,7 @@ #include +/* Prints a formatted string containing an invalid escape sequence */ + int main(int argc, char *argv[]) { printf("hello \c world\n"); return 0; diff --git a/1/3.c b/1/3.c index d0c8ea1..c993843 100644 --- a/1/3.c +++ b/1/3.c @@ -1,5 +1,7 @@ #include +/* Prints a conversion table from fahrenheit to celsius */ + int main(int argc, char *argv[]) { float fahr, celsius; int lower, upper, step; diff --git a/1/4.c b/1/4.c index 653b530..d98787b 100644 --- a/1/4.c +++ b/1/4.c @@ -1,5 +1,7 @@ #include +/* Prints a conversion table from celsius to fahrenheit */ + int main(int argc, char *argv[]) { float celsius, fahr; int lower, upper, step; -- cgit v1.2.3