Well guys I do really appreciate your effort and time for answering!
I am pretty sorry for the examples and the typo errors..
There was a mistake on #define directives at .h file..
So nothing...
Type: Posts; User: WhiteDeviL
Well guys I do really appreciate your effort and time for answering!
I am pretty sorry for the examples and the typo errors..
There was a mistake on #define directives at .h file..
So nothing...
The thing I care the most is about the different behavior I am getting when I use the macros as return values from the ternary operator.
Well my bad I did a mistake when I initialized ch2 in my example
I edited the question so everything I mentioned still implies about the reasoning behind this behavior.
Hello guys, I have into a header 2 defined string macros where I am using them as a return value for a ternary operator i.e.:
--- foo.h ---
...
#define STR1 "CORRECT"
#define STR2 "WRONG"
......
Thanks for the answer, I was confused a bit with unary operators when I posted this and the only reason I used gets() was because the book I was reading had this as a solution to an exercise.
Hello Cprogramming Community, I need some clarification about this particular code below:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>