IT
Senior High
Resolved

C言語を用いてのプログラミングの時

#define PI 3.14159
という文はどういう意味になりますか?

プリプロセッサですから#include <stdio.h>の次に記述する文ですよね?

プログラミング

Answers

✨ Best Answer ✨

コンパイル前にPIという文字(マクロ名)を3.14159という値で定義しているのです。

Post A Comment
Were you able to resolve your confusion?

Users viewing this question
are also looking at these questions 😉