online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main(){ // 프로그램 시작 int value = 125; // 정수형 변수 value 선언 및 값 125로 초기화 int *ptr; // 정수형 변수를 가리키는 포인터 변수 선언 ptr = &value; // ptr은 value의 주소를 가리킴 // value의 주소를 ptr에 저장 printf("value의 값: %d\n", value); // value의 값 출력 printf("value의 주소: %p\n", &value); // value의 메모리 주소 출력 printf("ptr이 가리키는 주소: %p\n", ptr); // ptr에 저장된 주소 출력 (value의 주소와 동일) printf("ptr이 가리키는 실제 값: %d\n", *ptr); // value의 값을 반환 // ptr이 가리키는 메모리의 값 출력 (value의 값) 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