Can we define macros in main function in C?

You can use it inside a function , but it is not scoped to the function. So, in your example, the second definitions of a macro will be a redefinition and generate an error. You need to use #undef to clear them first.

Sizin İçin Seçtik  Sorumlu üretim ve tüketim hedefi nedir?

Leave a Reply

Your email address will not be published. Required fields are marked *