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