Created
June 21, 2017 00:24
-
-
Save 20chan/0c9be43b35254a030dd736740dd67541 to your computer and use it in GitHub Desktop.
c가 배열 메모리를 어떻게 처리하는가 + 신태틱 슈거 테스트
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include<stdio.h> | |
int main() | |
{ | |
int data[3][3]; | |
data[0][0] = 0; data[0][1] = 1; data[0][2] = 2; | |
data[1][0] = 3; data[1][1] = 4; data[1][2] = 5; | |
data[2][0] = 6; data[2][1] = 7; data[2][2] = 8; | |
printf("%d", data[1][2]); | |
printf("%d", data[0][5]); | |
printf("%d", *(&data[0][0] + 1 * 3 + 2)); | |
printf("%d", 2[data[1]]); | |
printf("%d", (-298)[101[data]]); | |
printf("%d", 'A'[(-20)[data]]); | |
getchar(); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment