Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Ashok Kumar, Bharath
so2021
Commits
01bcda27
Commit
01bcda27
authored
Apr 05, 2020
by
Praetorius, Simon
Browse files
Merge branch 'patch-7' into 'master'
Update 03_operators.tex See merge request teaching/scprog/wi2019!65
parents
6b7d70fd
b40257c8
Changes
1
Hide whitespace changes
Inline
Side-by-side
lecture/03_operators.tex
View file @
01bcda27
...
...
@@ -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 an
d
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++;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment