online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#pragma warning(disable: 4996) //컴파일러 경고 비활성화(scanf()함수 보안 경고 회피) #include <stdio.h> // 표준 라이브러리 헤더 포함 int main(){ // 프로그램 시작, main 함수 정의 int a, b; // 정수형 변수 a, b 선언 char op; // 문자형 변수 op 선언 (연산자 저장) printf("두 정수 덧셈 (ex 10 + 20): "); // 예시처럼 정수 덧셈을 입력하라는 문자열 출력 scanf("%d %c %d", &a, &op, &b); /* 정수, 문자, 정수 입력 %d : 정수 입력, &a : 변수 a의 메모리 주소 %c : 문자 입력, &op : 변수 op의 메모리 주소 %d : 정수 입력, &b : 변수 b의 메모리 주소 */ printf("%d %c %d = %d\n", a, op, b, a + b); /* 두 정수, 연산자, 연산 결과 출력 %d : 정수 a 출력 %c : 문자 op 출력 %d : 정수 b 출력 %d : 두 정수 a + b의 합 출력 */ 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