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}; // ๋ฐฐ์—ด ์ดˆ๊ธฐํ™” int* ptr =a; // ๋ฐฐ์—ด๋ช… a๋ฅผ ํฌ์ธํ„ฐ์ฒ˜๋Ÿผ ์‚ฌ์šฉ for (int i =0; i < 5; i++){ // ํฌ์ธํ„ฐ๋ฅผ ์‚ฌ์šฉํ•˜์—ฌ ๊ฐ ์š”์†Œ์— ์ ‘๊ทผ printf("*(ptr + %d) = %d\n", i, *(ptr + i)); // *(ptr + i)- ptr์— ๋ฐฐ์—ด์˜ ์‹œ์ž‘ ์ฃผ์†Œ๋ฅผ ํ• ๋‹นํ•˜๊ณ  ์ฐธ์กฐ } 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