{}

Build your resume with HTML & CSS and win $100

Get featured on Programiz PRO and the Wall of Inspiration.

Build your resume with HTML & CSS and win $100

Join Challenge →
Join Challenge →

Build your resume with HTML & CSS and win $100

Get featured on Programiz PRO and the Wall of Inspiration.

Build your resume with HTML & CSS and win $100

Join Challenge →
Join Challenge →
run-icon
main.c
#include <stdio.h> void test_pointer_increment() { int arr[] = {100, 200, 300}; int* p = arr; printf("--- *(p++) 실행 ---\n"); printf("초기 상태: p가 가리키는 값 = %d, arr[0] = %d\n", *p, arr[0]); int result = *(p++); printf("결과: 반환된 값 = %d\n", result); printf("최종 상태: p가 가리키는 값 = %d, arr[0] = %d\n\n", *p, arr[0]); } void test_value_increment() { int arr[] = {100, 200, 300}; int* p = arr; printf("--- (*p)++ 실행 ---\n"); printf("초기 상태: p가 가리키는 값 = %d, arr[0] = %d\n", *p, arr[0]); int result = (*p)++; printf("결과: 반환된 값 = %d\n", result); printf("최종 상태: p가 가리키는 값 = %d, arr[0] = %d\n\n", *p, arr[0]); } int main() { test_pointer_increment(); test_value_increment(); return 0; }
Output