Permalink
Browse files

Correction of minor errors in Chapter 2.

  • Loading branch information...
1 parent 8826028 commit d464cf9e6094ffbd2b4c1d12d21c8535ab90cf03 @rfitzp committed Mar 31, 2011
Showing with 4 additions and 4 deletions.
  1. +4 −4 Chapter02/Chapter02.tex
View
@@ -2636,10 +2636,10 @@ \section{Multi-File Programs}
#include <stdio.h>
-/* Prototype for fucntion factorial() */
+/* Prototype for function factorial() */
void factorial();
-/* Global variable declarations */
+/* Global variable definitions */
int j;
double fact;
@@ -2665,7 +2665,7 @@ \section{Multi-File Programs}
#include <stdio.h>
#include <stdlib.h>
-/* Global variable definitions */
+/* Global variable declarations */
extern int j;
extern double fact;
@@ -2979,7 +2979,7 @@ \section{C++ Extensions to C}
{\tt res}, when calling {\tt square()}, and we must refer to the argument as
\verb}*y}, rather than {\tt y}, in the function itself.
After a while, all these ampersands and asterisks
-can become a little tedious! C++ introduces a new method of passing by reference which somewhat
+can become a little tedious! C++ introduces a new method of passing by reference which is somewhat
less involved. This new method is illustrated in the following:
{\small\begin{verbatim}
. . .

0 comments on commit d464cf9

Please sign in to comment.