Why we need to use # before ifndef? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

Why we need to use # before ifndef?

11th Jul 2016, 11:00 AM
Paula Ariton
Paula Ariton - avatar
7 Answers
+ 4
if you mean that they both have # , yes
11th Jul 2016, 11:19 AM
Hooman
Hooman - avatar
+ 3
Because ifndef is a C preprocessor directive, like pragma, define or include, and every one of them starts with a #.
11th Jul 2016, 11:20 AM
Garme Kain
Garme Kain - avatar
+ 1
thank you all!
11th Jul 2016, 11:26 AM
Paula Ariton
Paula Ariton - avatar
+ 1
thank you very much!
11th Jul 2016, 11:29 AM
Paula Ariton
Paula Ariton - avatar
0
Because it is syntax of C++ language
11th Jul 2016, 11:10 AM
Hooman
Hooman - avatar
0
#ifndef is like #include?
11th Jul 2016, 11:13 AM
Paula Ariton
Paula Ariton - avatar
- 1
and also you are a beautiful girl
11th Jul 2016, 11:26 AM
Hooman
Hooman - avatar