void

名称

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://www.arduino.cc/reference/en/language/variables/data-types/void/

Last Revision: 2019/02/19

最終更新日

January 4, 2024

inserted by FC2 system