We can use ; after preprocessor or not it gives same output. Why? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 2

We can use ; after preprocessor or not it gives same output. Why?

30th Nov 2016, 7:53 PM
sagar goel
sagar goel - avatar
3 Answers
+ 3
Preprocessor directives do not require a semicolon (;). Adding an unneeded semicolon simply inserts an empty statement which does nothing.
1st Dec 2016, 3:02 AM
Gordon Garmaise
Gordon Garmaise - avatar
+ 2
preprocessor directives need not to end with a semicolon
28th Dec 2016, 11:54 AM
shweta
+ 2
Thanks
28th Dec 2016, 12:03 PM
sagar goel
sagar goel - avatar