Replies
Welcome, guest
Join CrazyEngineers to reply, ask questions, and participate in conversations.
CrazyEngineers powered by Jatra Community Platform
-
@sarveshgupta-txtmu5 • Dec 12, 2009
-
@rengaraj-89Rrct • Dec 12, 2009
Hi,
Yes, you are right but 0 denotes false in C.
If value of one , 0 is applied. Then the next printf will not be executed.
But we get "one is defined" how ?
R.Rengaraj -
@gauravbhorkar-Pf9kZD • Dec 12, 2009
rengarajHi,
Yes, you are right but 0 denotes false in C.
If value of one , 0 is applied. Then the next printf will not be executed.
But we get "one is defined" how ?
R.Rengaraj#define one 0
This directive defines "one".
#ifdef one printf("one is defined "); #ifndef one printf("one is not defined ");These directives check whether "one" is defined or not, irrespective of the value "one" takes. -
@sahithi-oJZaYj • Dec 12, 2009
Good answer Gaurav..! -
@gauravbhorkar-Pf9kZD • Dec 12, 2009
Thank You!sahithi pallaviGood answer Gaurav..! -
@sarveshgupta-txtmu5 • Dec 12, 2009
Good answer Gaurav -
@rengaraj-89Rrct • Dec 15, 2009
Thanks...
R.Rengaraj