본문 바로가기

Nyong!

검색하기
Nyong!
프로필사진 신뇽!

  • Nyong (11)
    • Study (11)
      • Computer Architecture (1)
      • Operating System (7)
      • PIM(Process in memory) (1)
      • C (1)
      • Digital design (1)
    • Diary (0)
Guestbook
Notice
Recent Posts
Recent Comments
Link
«   2025/06   »
일 월 화 수 목 금 토
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
  • Fair-Share Scheduling
  • System Call
  • Process
  • STCF
  • MLFQ
  • DRAM
  • virtual memory
  • 프로그래밍
  • 문법
  • Stride scheduling
  • PIM
  • Process in Memory
  • FIFO
  • 프로그래밍언어
  • computer architercure
  • SJF
  • 운영체제
  • Round robin
  • Segmenation
  • scheduling
  • 스케줄러
  • Operating System
  • 컴퓨터 구조
  • 어셈블리
  • 컴퓨터
  • C언어
  • sceduling
  • scheduler
  • Computer Architecture
more
Archives
Today
Total
관리 메뉴
  • 글쓰기
  • 방명록
  • RSS
  • 관리

목록컴퓨터 (1)

Nyong!

if 문과 switch 문의 차이(어셈블리 레벨에서)

if, else if를 사용한 문법과 switch문은 결과적으로 같은 역할을 수행할 수 있다. 아래 코드를 확인해보자 //if 문 예시 int main(){ int i; scanf("%d", &i); if (i == 0) printf("input is 0"); else if (i == 1) printf("input is 1"); else if (i == 2) printf("input is 2"); else if (i == 3) printf("input is 3"); else if (i == 4) printf("input is 4"); else if (i == 5) printf("input is 5"); else printf("wrong input") return 0; } //switch 문 예시 int ..

Study/C 2022. 5. 26. 18:24
이전 Prev 1 Next 다음

Blog is powered by kakao / Designed by Tistory

티스토리툴바