Commit b40257c8 authored by Kulkarni, Apurv's avatar Kulkarni, Apurv
Browse files

Update 03_operators.tex

Line127: '||' -> 'or' operator being italicized is a little confusing.  
Line132: an  
Line253: undefined behavior
parent 97aa1d3d
......@@ -129,7 +129,7 @@ Operator & Action \\
\begin{rem}
With \cxx{20}\marginpar{[\cxx{20}]} a new comparison operator will be introduced, called \emph{three-way comparison operator}
or sometimes also \emph{space-ship operator}. It is written as \cpp{<=>} and returns and object such that
or sometimes also \emph{space-ship operator}. It is written as \cpp{<=>} and returns an object such that
\begin{itemize}
\item \cpp{(a <=> b) < 0} if \cpp{lhs < rhs}
\item \cpp{(a <=> b) > 0} if \cpp{lhs > rhs}
......@@ -250,7 +250,7 @@ at all or not, \ie
int foo(int a, int b) { return a + b; }
int x = 1;
foo(++x, x++); // Variant 1 (behavior undefiniert)
foo(++x, x++); // Variant 1 (undefined behavior)
x = 1;
int a = ++x, b = x++;
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment