#include <stdio.h>
int main() {
// int arr[2][4] = {0};
// printf("arr[0]의 크기: %zu\n", sizeof(arr[0]));
// printf("arr[0][1]의 크기: %zu\n", sizeof(arr[0][1]));
int arr[2][3];
for(int i=0;i<2;i++){
for(int j=0;j<3;j++){
scanf("%d", &arr[i][j]);
}
}
for(int i=0;i<2;i++){
for(int j=0;j<3;j++){
printf("arr[%d][%d]=%d\n", i, j, arr[i][j]);
}
}
arr[0][0] = 10;
printf("배열 arr의 0행 0열 요소를 10으로 수정\n");
printf("arr[0][0]=%d\n",arr[0][0]);
char t[4][10] = {"hallo!", "DLAB", "NICE"};
for(int i=0;i<4;i++){
printf("%s\n", t[i]);
}
t[0][1] = 'e';
printf("%s\n", t[0]);
return 0;
}
To embed this project on your website, copy the following code and paste it into your website's HTML: