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 |
Tags
- Angular Router
- angular route
- ajax 사용 예시
- angular modal
- 스크롤 이벤트 감지
- Ionic modal
- mysql if
- formgroup
- 모달
- summary
- TAILWIND
- angular animation
- 옵저버블
- prisma
- 호버
- 검색
- 아이오닉 스크롤 이벤트
- scroll
- Oracle LISTAGG 사용 예시
- 앵귤러 모달
- 앵귤러 애니메이션
- 스크롤 이벤트
- angular button
- flex-1
- egov spring ajax 사용 예시
- modal
- 셀렉트박스 커스텀
- Router
- route
- ApexChart
Archives
- Today
- Total
깜놀하는 해므찌로
C언어 포인터 기초 설명 예시 본문
반응형
SMALL
#include <stdio.h>
// 리턴을 사용하지 않고 포인터를 활용하여 두 값을 서로 바꾸는 방법
void swap(int *x, int *y){
int temp;
temp = *x; // x의 값을 temp에 넣음
*x = *y;
*y = temp;
}
int main(void){
int x = 1;
int y = 2;
swap(&x, &y); // & 해당 변수의 주소를 가져옴
printf("x : %d, y : %d", x, y);
return 0;
}
반응형
LIST
'IT' 카테고리의 다른 글
Angular *ngFor constructor (0) | 2023.04.29 |
---|---|
warning: in the working copy of 'yarn.lock', LF will be replaced by CRLF the next time Git touches it 에러 해결 예시 (0) | 2023.04.29 |
Tailwind Angular 토글 CSS 예시 (0) | 2023.04.29 |
C언어 배열 팁 (0) | 2023.04.28 |
tailwind hover 호버 이벤트 ring / 호버 시 테두리 (0) | 2023.04.28 |