Search:

Type: Posts; User: WhiteDeviL

Search: Search took 0.00 seconds.

  1. Replies
    6
    Views
    3,187

    Well guys I do really appreciate your effort and...

    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...
  2. Replies
    6
    Views
    3,187

    The thing I care the most is about the different...

    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.
  3. Replies
    6
    Views
    3,187

    Well my bad I did a mistake when I initialized...

    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.
  4. Replies
    6
    Views
    3,187

    Ternary operator unexpected result

    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"
    ......
  5. Thanks for the answer, I was confused a bit with...

    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.
  6. Understanding increment operator with pointers in C

    Hello Cprogramming Community, I need some clarification about this particular code below:




    #include <stdio.h>
    #include <stdlib.h>
    #include <string.h>
Results 1 to 6 of 6