diff options
| author | Sadeep Madurange <smadurange@users.noreply.github.com> | 2021-11-14 18:07:03 +0800 |
|---|---|---|
| committer | Sadeep Madurange <smadurange@users.noreply.github.com> | 2021-11-14 18:07:03 +0800 |
| commit | 9d0f759d15f2879e1b28c1c80bea7a244e7483cb (patch) | |
| tree | fc1d9f8170dbeceec915ca2d294fe000517ef3b7 /1 | |
| parent | 2d6fda53f98a3b7614cd441e6d521aed8421d386 (diff) | |
| download | k&r-exercises-9d0f759d15f2879e1b28c1c80bea7a244e7483cb.tar.gz | |
Add comments.
Diffstat (limited to '1')
| -rw-r--r-- | 1/1.c | 2 | ||||
| -rw-r--r-- | 1/2.c | 2 | ||||
| -rw-r--r-- | 1/3.c | 2 | ||||
| -rw-r--r-- | 1/4.c | 2 |
4 files changed, 8 insertions, 0 deletions
@@ -1,5 +1,7 @@ #include <stdio.h> +/* Prints the famous "hello, world" string */ + int main(int argc, char *argv[]) { printf("hello, world\n"); return 0; @@ -1,5 +1,7 @@ #include <stdio.h> +/* Prints a formatted string containing an invalid escape sequence */ + int main(int argc, char *argv[]) { printf("hello \c world\n"); return 0; @@ -1,5 +1,7 @@ #include <stdio.h> +/* Prints a conversion table from fahrenheit to celsius */ + int main(int argc, char *argv[]) { float fahr, celsius; int lower, upper, step; @@ -1,5 +1,7 @@ #include <stdio.h> +/* Prints a conversion table from celsius to fahrenheit */ + int main(int argc, char *argv[]) { float celsius, fahr; int lower, upper, step; |
