void

Last revision:2024/05/16

名称

void

説明

voidは、関数宣言で利用され、その関数が呼び出し元に値を返さないことを意味する。

使用例

以下のコードは、voidの使い方を示す。

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
// actions are performed in the functions "setup" and "loop"
// but  no information is reported to the larger program

void setup() {
  // ...
}

void loop() {
  // ...
}

参照

オリジナルのページ

https://docs.arduino.cc/language-reference/en/variables/data-types/void/

最終更新日

July 22, 2026

inserted by FC2 system