18
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

C言語でHello worldプログラムの作り方

Last updated at Posted at 2014-09-20

C言語でのHello worldプログラムの作り方

お好きなエディタで、下記のhello.cファイルを作成する。

hello.c
#include <stdio.h>

int main(int argc, char *args[])
{
    printf("Hello, world!\n");
    return 0;
}

下記のようにコンパイルする。

shell
$ gcc -o hello hello.c
$ 

実行する。

shell
$ ./hello
Hello, world!
$ 

C言語でHello worldプログラムが書けました!

18
12
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
18
12

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?