Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
Alexander Hirsch
crap
Commits
442f491a
Commit
442f491a
authored
Sep 21, 2019
by
Alexander Hirsch
Browse files
C Slides: Minor changes
parent
169fa99f
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
2 deletions
+21
-2
slides/c_slides.md
slides/c_slides.md
+21
-2
No files found.
slides/c_slides.md
View file @
442f491a
...
...
@@ -58,6 +58,26 @@ typedef void (*visit_expression_cb)(struct expression *, void *userdata);
const
int
*
cptr
;
```
---
```
c
bool
b1
=
1
;
bool
b2
=
2
;
if
(
b1
==
b2
)
puts
(
"equal"
);
```
```
$ ./bool
equal
```
```
asm
movb $1, -9(%ebp)
movb $1, -10(%ebp)
```
## User-defined Types
```
c
...
...
@@ -217,7 +237,6 @@ case PHONE_TYPE_WORK:
break
;
default:
puts
(
"default"
);
break
;
}
```
...
...
@@ -519,7 +538,7 @@ More about this later in C++…
```
```
c
#define FOO \
#define FOO
()
\
do { \
do_stuff(); \
do_other_stuff(); \
...
...
Write
Preview
Markdown
is supported
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