Skip to content

Instantly share code, notes, and snippets.

@sezemiadmin
Created November 21, 2018 02:19
Show Gist options
  • Select an option

  • Save sezemiadmin/4cd67826637a362128485ff8c74287c3 to your computer and use it in GitHub Desktop.

Select an option

Save sezemiadmin/4cd67826637a362128485ff8c74287c3 to your computer and use it in GitHub Desktop.
f-4-*.c のコンパイル | 実行結果
$gccf-4-3-ArraySample.c
$./a.out
配列0番目のデータは75
配列1番目のデータは82
配列2番目のデータは66
$gccf-4-3-ArraySample2.c
$./a.out
合計は223です。
$gccf-4-3-ArraySample3.c
$./a.out
合計は223です。
$gccf-4-4-ArrayLoopSample.c
$./a.out
75
82
66
$gccf-4-4-ArraySumSample.c
$./a.out
合計は223です。
$gccf-4-5-StringSample.c
$./a.out
HelloWorld!
$gccf-4-5-StringSample2.c
$./a.out
HelloWorld!
$gccf-4-5-StringDisplaySample.c
$./a.out
H
e
l
l
o
!
$gccf-4-5-StringDisplaySample2.c
$./a.out
Hello!$
$gccf-4-6-StringLengthSample.c
$./a.out
strの文字列の長さは12文字です。
$gccf-4-6-StringLengthSample2.c
$./a.out
strの文字列の長さは12文字です。
$gccf-4-6-StringCopySample.c
$./a.out
str2の文字列はHello,World!です。
$gccf-4-6-StringCopySample2.c
$./a.out
str2の文字列はHello,World!文字です。
$gccf-4-6-StringCatCmpSample.c
$./a.out
s1とs2の連結後の文字列:Hello,World!
s2はs3より小さな文字列です。
$gccf-4-7-AtoiAtofSample.c
$./a.out
n1+n2=579
d1+d2=5.850000
$gccf-4-7-TwoDimArraySample.c
$./a.out
ABCD
EFGH
IJKL
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment