summaryrefslogtreecommitdiffstats
path: root/4
diff options
context:
space:
mode:
authorSadeep Madurange <smadurange@users.noreply.github.com>2021-12-11 18:02:27 +0800
committerSadeep Madurange <smadurange@users.noreply.github.com>2021-12-11 18:02:27 +0800
commit3e0c7ddaac50b22d98f4d4147aa32b9d54b5bf7a (patch)
tree5b07961494d8909c05b6befc67fd64bee4357d66 /4
parent363745153156d4d0b8e9981319d98221d763af7f (diff)
downloadk&r-exercises-3e0c7ddaac50b22d98f4d4147aa32b9d54b5bf7a.tar.gz
4.4
Diffstat (limited to '4')
-rw-r--r--4/4.c2
-rw-r--r--4/5.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/4/4.c b/4/4.c
index 221eec6..8a3fef8 100644
--- a/4/4.c
+++ b/4/4.c
@@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
break;
case FUNCTION:
if (strcmp("top", s) == 0)
- peek();
+ printf("peek top: %.8g\n", peek());
else if (strcmp("dup", s) == 0)
push(peek());
else if (strcmp("swp", s) == 0) {
diff --git a/4/5.c b/4/5.c
index a33e796..1a79697 100644
--- a/4/5.c
+++ b/4/5.c
@@ -68,7 +68,7 @@ int main(int argc, char *argv[]) {
break;
case FUNCTION:
if (strcmp("top", s) == 0)
- peek();
+ printf("peek top: %.8g\n", peek());
else if (strcmp("dup", s) == 0)
push(peek());
else if (strcmp("swp", s) == 0) {