summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-11-16 19:36:08 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-11-16 19:36:08 +0800
commit3c3f71ceb83e6f8317ba55244f06f67c107e5c51 (patch)
tree1c8647a368ca1662b6426c3dce598398d6c36c58
parent5433f7161662106ac6337db8e6344a705bb18fc2 (diff)
downloadk&r-exercises-3c3f71ceb83e6f8317ba55244f06f67c107e5c51.tar.gz
Comments.
-rw-r--r--1/1.c1
-rw-r--r--1/2.c1
-rw-r--r--1/3.c1
-rw-r--r--1/4.c1
-rw-r--r--1/5.c1
-rw-r--r--1/6.c1
-rw-r--r--1/7.c1
7 files changed, 2 insertions, 5 deletions
diff --git a/1/1.c b/1/1.c
index 5cf53fd..70aacff 100644
--- a/1/1.c
+++ b/1/1.c
@@ -1,7 +1,6 @@
#include <stdio.h>
/* 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 182975e..6d7a762 100644
--- a/1/2.c
+++ b/1/2.c
@@ -1,7 +1,6 @@
#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;
diff --git a/1/3.c b/1/3.c
index c993843..42a0099 100644
--- a/1/3.c
+++ b/1/3.c
@@ -1,7 +1,6 @@
#include <stdio.h>
/* 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 d98787b..c5eb242 100644
--- a/1/4.c
+++ b/1/4.c
@@ -1,7 +1,6 @@
#include <stdio.h>
/* Prints a conversion table from celsius to fahrenheit */
-
int main(int argc, char *argv[]) {
float celsius, fahr;
int lower, upper, step;
diff --git a/1/5.c b/1/5.c
index fcaeb8e..617fe6b 100644
--- a/1/5.c
+++ b/1/5.c
@@ -1,7 +1,6 @@
#include <stdio.h>
/* Prints a conversion table from fahrenheit to celsius in reverse order */
-
int main(int argc, char *argv[]) {
int fahr;
diff --git a/1/6.c b/1/6.c
index c478c7a..240175e 100644
--- a/1/6.c
+++ b/1/6.c
@@ -1,5 +1,6 @@
#include <stdio.h>
+/* prints input characters */
int main(int argc, char *argv[]) {
int c;
diff --git a/1/7.c b/1/7.c
index 44abfd3..b44935d 100644
--- a/1/7.c
+++ b/1/7.c
@@ -1,6 +1,7 @@
#include <stdio.h>
+/* prints the value of EOF */
int main(int argc, char *argv[]) {
int c;