Skip to content

Instantly share code, notes, and snippets.

@Ah-da-Coder
Last active March 16, 2017 12:36
Show Gist options
  • Select an option

  • Save Ah-da-Coder/cc7299d687b32fc38a3509893e57b7c4 to your computer and use it in GitHub Desktop.

Select an option

Save Ah-da-Coder/cc7299d687b32fc38a3509893e57b7c4 to your computer and use it in GitHub Desktop.
// ReternC_002_Variable.cpp : コンソール アプリケーションのエントリ ポイントを定義します。
//
#include "stdafx.h"
int _tmain(int argc, _TCHAR* argv[])
{
/* 変数 */
int num;
/* 初期化 */
num = 1;
/* コンソールに値を表示 */
printf("%d\r\n", num);
/* 値を代入 */
num = num + 1;
/* コンソールに演算後の値を表示 */
printf("%d\r\n", num);
while(1);
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment