본문 바로가기

Art of Pr0gr4m

검색하기
Art of Pr0gr4m
프로필사진 pr0gr4m

  • Pr0gr4m (45)
    • IT (43)
      • C Language (3)
      • Linux Kernel (22)
      • Linux Programming (1)
      • Network Programming (0)
      • Android (2)
      • Embedded Linux (0)
      • Using Linux (6)
      • Kafka (2)
    • Book (2)
      • IT (2)
      • 만화 (0)
      • 기타 (0)
    • BoB (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/07   »
일 월 화 수 목 금 토
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 31
Tags
  • spinlock
  • NDK
  • Linux
  • lruvec
  • allocator
  • proc
  • commit
  • multiqueue
  • kafka
  • page
  • memory
  • Network
  • strex
  • BLOCK
  • vm_area_struct
  • slowpath
  • fastpath
  • Apache
  • vmalloc
  • buddy_system
  • Kernel
  • kmalloc
  • mm_struct
  • blk-mq
  • slab
  • pmap
  • 카프카
  • devicedriver
  • Android
  • slub
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록초기화구문 (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
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바