본문 바로가기

몽상실현개발주의

검색하기
몽상실현개발주의
프로필사진 migrationArc

  • 분류 전체보기 (421)
    • Dev (9)
    • Language (271)
      • C (186)
      • Javascript (9)
      • Python (2)
      • php (48)
      • Algorithm (26)
    • Algorithm PS (127)
      • BOJ (113)
      • 프로그래머스 (7)
      • Algospot (7)
    • 몽상실현 (1)
      • 회고 (1)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/05   »
일 월 화 수 목 금 토
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
  • 백준
  • greedy
  • C언어
  • dfs
  • server
  • String
  • Cleancode
  • udemy
  • 인프런
  • 따라하며 배우는 C언어
  • BFS
  • 생활코딩
  • Algospot
  • Python
  • web
  • Math
  • 따라하면서 배우는 C언어
  • DP
  • sorting
  • JavaScript
  • graph
  • C
  • Algorithm
  • php
  • 따배씨
  • 정수론
  • BASIC
  • programmers
  • 종만북
  • BOJ
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록C언어] (1)

몽상실현개발주의

[따배씨] 16.10 _Generic 표현식

따배씨 - 따라하며 배우는 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
Prev 1 Next

Blog is powered by kakao / Designed by Tistory

티스토리툴바