일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
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
- html code
- #다차원포인터
- 토큰경제
- 하이퍼레저패브릭
- #binary
- docker example
- #자바상속#자바이즈어#is~a
- mac terminal command
- #3차원배열
- git flow
- hyperledger transaction
- html5 new tag
- html plug-in
- html youtube
- html id
- html object
- #bubbleSort
- #C++ has~a
- #2차원배열
- #C++ 연산자함수오버로딩
- html video
- #JAVASCRIPT
- #android activity
- html multimedia
- #성적관리프로그램
- border-box
- #1차원배열
- #CallByAddress
- relative path
- html charset
Archives
- Today
- Total
목록#int * const p (1)
A sentimental robot
int * const p
#include #pragma warning (disable:4996) void main() { int a = 10; int b = 20; int *const p=&b; // 상수 포인터 ( 고정포인터 ) > 주소를 바꿀수 없다. > 선언과 동시에 초기화를 해야함★ b = 500; printf("%d %d %d\n",a, b,*p); //10 500 500 *p=300; //b=300 값을 바꾸는 것은 가능하다. printf("%d %d %d\n",a, b,*p); p = &a; // error : 고정된 주소포인터이기 때문에 주소를 바꿀 수 없다!!★ }
C
2018. 1. 2. 11:51