online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main(void) { // 1) 정수 5개를 요소로 갖는 배열 초기화 int a[5] = { 2, 4, 6, 8, 22 }; // 2) 배열명 a는 곧 배열의 첫 요소 주소이므로, 포인터에 대입 가능 int *ptr = a; // 3) 포인터 연산으로 배열 요소에 접근 for (int i = 0; i < 5; i++) { // ptr + i 는 i번째 요소의 주소, // *(ptr + i) 는 그 주소에 저장된 실제 값 printf("*(ptr + %d) = %d\n", i, *(ptr + 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