Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | 5 | 6 | |
7 | 8 | 9 | 10 | 11 | 12 | 13 |
14 | 15 | 16 | 17 | 18 | 19 | 20 |
21 | 22 | 23 | 24 | 25 | 26 | 27 |
28 | 29 | 30 |
Tags
- BLOCK
- kafka
- spinlock
- pmap
- lruvec
- Android
- NDK
- mm_struct
- allocator
- devicedriver
- multiqueue
- vmalloc
- buddy_system
- Linux
- commit
- 카프카
- memory
- slub
- kmalloc
- slowpath
- Network
- strex
- page
- Kernel
- blk-mq
- proc
- slab
- fastpath
- vm_area_struct
- Apache
Archives
- Today
- Total
목록Initializer (1)
Art of Pr0gr4m
C Initializer 주저리
C언어 좀 만지다가, int a = { 2 };와 같은 문법이 잘 동작하는걸 보고 오랜만에 표준 문서를 뒤져봤다. KNK 같은 책의 initializers 파트에서 보면 simple variable은 expression of the same type as the variable로 초기화하고, array, structure, or union은 a series of values enclosed in braces로 초기화한다고 나온다. 그런데, 대박. ISO/IEC 9899:201x 6.7.9.11 번을 보면 "The initializer for a scalar shall be a single expression, optionally enclosed in braces." 라고 나와있다.. optionally ..
IT/C Language
2018. 2. 18. 02:05