online compiler and debugger for c/c++

code. compile. run. debug. share.
Source Code   
Language
#include <stdio.h> int main(){ short sh = 12; // short 정수형 변수 int nt = 155; // int 정수형 변수 long long on = 1666; // long long 정수형 변수 long ln = 2000; // 강의중 추가됨, long 정수형 변수 printf("자료형의 크기를 알아보는 코드\n"); printf("1. short : %dbyte, %dbyte \n", sizeof(sh), sizeof sh); // short 변수sh의 메모리 크기 출력 // sizeof 연산자 사용, (sh)와 sh 처럼 괄호 생략해도 결과 동일 printf("2. int : %dbyte, %dbyte \n", sizeof(nt), sizeof nt); // int형 변수 nt의 메모리 크기 출력 printf("3. long long : %dbyte, %dbyte \n", sizeof(on), sizeof on); // long long형 변수 on의 메모리 크기 출력 printf("4. long : %dbyte, %dbyte \n", sizeof(ln), sizeof ln); //강의중 추가됨 // long형 변수 ln의 메모리 크기 출력 //강의 자료에서는 4byte로 나오지만, 프로그램 마다 차이가 있다. 여기서는 8byte 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