Skip to content

Commit

Permalink
Update lec5.md
Browse files Browse the repository at this point in the history
  • Loading branch information
yelan187 authored Dec 14, 2024
1 parent 02f4850 commit 504c3a9
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/programming/24fall/lec5.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ int x;

关键字如下:

![Alt text](keyword.png)
![Alt text](lec5.assets/keyword.png)

> 例1.1-1 Which one below is NOT a valid identifier in the C programming language?
A. printf
Expand Down Expand Up @@ -73,7 +73,7 @@ char f0 = '\x00041';// 和上面的是一样的
`% & <<` 运算符不能用在 `double`

运算顺序问题,简单来说:赋值运算符和位运算符较低,略高的是算术运算,再高的是自增/减
<img src="priority.png" width="60%">
<img src="lec5.assets/priority.png" width="60%">

> 例1.3-1 若定义 `int a=1,b=2,c=3,d=4` 那么表达式 `(a>b?c>a?c-3:c-1:b==c?d-a:d-c)` 的值为
Expand Down Expand Up @@ -343,4 +343,4 @@ E.`char var[10][10], **p=var;`
char *p = "hello";
char a[] = "hello";
char b[] = {'h', 'e', 'l', 'l', 'o', '\0'};
```
```

0 comments on commit 504c3a9

Please sign in to comment.