Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
以下の例のように、マクロを使用して何かを定義する必要があるとは思いません。
#define TELEPHONE 443 //why use this int telephone = 443; //when same job is done by a regular variable
定義 (C 言語での変数の宣言) にマクロを使用するのはなぜですか? 上記のシナリオのように?