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
- 정수론
- sorting
- 따라하며 배우는 C언어
- udemy
- JavaScript
- 따라하면서 배우는 C언어
- web
- 종만북
- Algorithm
- 백준
- 생활코딩
- Algospot
- 따배씨
- graph
- Cleancode
- BASIC
- C
- BFS
- php
- DP
- BOJ
- server
- Math
- greedy
- programmers
- C언어
- String
- 인프런
- dfs
- Python
Archives
- Today
- Total
목록C언어] (1)
몽상실현개발주의

따배씨 - 따라하며 배우는 C언어 16강 전처리기와 라이브러리 16.10 _Generic 표현식 #include /* Generic selection expression - Generic programing : code is not specific to a particular type _Generic : C11 keyword */ #define MYPYPE(X) _Generic((X), \ int : "int", \ float: "float", \ double : "double", \ default: "other" \ ) int main() { int d = 5; printf("%s\n", MYPYPE(d)); // int printf("%s\n", MYPYPE(2.0 * d)); // double pr..
Language/C
2021. 9. 7. 14:56