Donghae Blog

Donghae Blog

  • Category (121)
    • Computer Science (28)
      • Computational thinking (7)
      • Algorithem (10)
      • Data structure (6)
      • Operating system (5)
    • Programming (25)
      • C (20)
      • Python (3)
      • SQL (2)
    • Data Engineering (3)
      • Linux (1)
      • Docker (1)
      • Apache Airflow (3)
      • Apache Spark (5)
      • BigQuery (5)
      • Datahub (1)
    • Problem Solving (26)
      • Baekjoon Online Judge (13)
      • Programmers (10)
      • CodeUp (2)
    • Conference (2)
    • Code States AI (4)
    • LIKELION 9th (12)
    • Writing (5)
  • 홈
  • 태그
  • 방명록
  • 글쓰기
RSS 피드
로그인
로그아웃 글쓰기 관리

Donghae Blog

컨텐츠 검색

태그

Django c언어 cs50 bigquery 시간복잡도 알고리즘 스택 백준 파이썬 포인터 프로그래머스 글또 문자열 장고 코딩테스트 부스트코스 배열 자료구조 멋쟁이사자처럼 네이버

최근글

댓글

공지사항

아카이브

힙(1)

  • C 언어 | 메모리 교환, 스택, 힙

    학습 목표메모리에 저장된 두 값을 교환하는 코드를 작성할 수 있다. 메모리 교환입력값을 바꾸는 함수를 만들어 프로그램을 작성해보자. #includevoid swap(int a, int b);int main(void){ int x = 1; int y = 2; printf("x is %i, y is %i\n", x, y); swap(x,y); printf("x is %i, y is %i\n", x, y);}void swap(int a, int b){ int tmp = a; a = b; b = tmp;}  프로그램을 살펴보자.정수 a와 b를 입력받아 값을 바꾸는 swap() 함수를 만들었다.swap() 함수는 같은 정수형 변수 tmp를 사용해 값을 바꾼다.ma..

    2021.02.22
이전
1
다음
티스토리
© 2018 TISTORY. All rights reserved.

티스토리툴바