online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main(){ // 프로그램 시작점 int a[5] = {2, 4, 6, 8, 22}; // 정수형 배열 a 선언 및 초기화 (크기 5) int *ptr = a; // 배열명 a는 배열의 시작 주소를 의미, 이를 포인터 ptr에 저장 // 포인터를 사용하여 각 요소에 접근 for (int i = 0; i < 5; i++){ printf("*(ptr + %d) = %d\n", i, *(ptr + i)); // ptr은 배열의 시작 주소, *(ptr + i)는 i번째 요소를 역참조하여 값 출력 } return 0; // 프로그램 종료 }

Compiling Program...

Command line arguments:
Standard Input: Interactive Console Text
×

                

                

Program is not being debugged. Click "Debug" button to start program in debug mode.

#FunctionFile:Line
VariableValue
RegisterValue
ExpressionValue