IT graph

気になったデバイスやプログラムで楽しくやっていけたら良いなと思っております。

2024-01-01から1年間の記事一覧

C言語の文字列について

以下のように6文字サイズのchar型変数に6文字を入れた場合 char str2[5] = "test23"; import numpy as np arr = np.array([1, 2, 3]) 以下のようにコンパイル時に警告がでる hello.c:5:16: 警告: initializer-string for array of ‘char’ is too long 5 | ch…

gcc version confirmation

■ RHELTo see whether gcc is installed on RHEL, query for the gcc package as follows rpm -q gcc ■ GCCthe version of the gcc executable gcc --version gcc -dumpversion

clang prinft

printf 標準出力を使う printf(出力文字フォーマット, 出力する変数や値) sprintf メモリを使う sprinf(出力先アドレス, 出力文字フォーマット, 出力する変数や値) fprintf ファイルを使う fprintf(出力先ファイル,出力文字フォーマット, 出力する変数や値) …

red hat epel install

[root@localhost ~]# dnf install https://dl.fedoraproject.org/pub/epel/epel-release-latest-9.noarch.rpm -y サブスクリプション管理リポジトリーを更新しています。 メタデータの期限切れの最終確認: 0:27:40 前の 2024年03月17日 13時15分22秒 に実施…