We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 36a8208 commit 9c2b149Copy full SHA for 9c2b149
intro.tex
@@ -1456,7 +1456,7 @@
1456
The first result is expected, i.e. \texttt{3}:
1457
1458
\begin{verbatim}
1459
-$ cat main.c
+$ cat main.c
1460
#include <stdio.h>
1461
1462
int my_add(int a, int b);
@@ -1477,7 +1477,7 @@
1477
1478
$ gcc -shared -o libadd.so add.c
1479
$ gcc -L. -ladd -Xlinker -R . main.c
1480
-$ ./a.out
+$ ./a.out
1481
3
1482
\end{verbatim}
1483
@@ -1494,8 +1494,8 @@
1494
return (a + b);
1495
}
1496
1497
-$ gcc -shared -o libadd.so add2.c
1498
+$ gcc -shared -o libadd.so add2.c
1499
-1077941135
1500
1501
0 commit comments