1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

why is this not working??

Discussion in 'C' started by micsom, Oct 15, 2008.

  1. micsom

    micsom New Member

    Joined:
    Oct 13, 2008
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    I*N*D*I*A*
    #include<stdio.h>
    #define TEST_MACRO SUM
    #define TEST_VARIABLES (2,4)

    void TEST_MACRO TEST_VARIABLES {
    printf("hi");
    }
    void main() {
    TEST_MACRO TEST_VARIABLES;

    }



    it is showing an error ") Expected"
     
  2. oogabooga

    oogabooga New Member

    Joined:
    Jan 9, 2008
    Messages:
    115
    Likes Received:
    11
    Trophy Points:
    0
    What you have amounts to this:
    Code:
    void SUM (2,4) {
      printf("hi");
    }
    
    void main() {
      SUM (2,4);
    }
    Do you see the problem?
     
  3. micsom

    micsom New Member

    Joined:
    Oct 13, 2008
    Messages:
    39
    Likes Received:
    0
    Trophy Points:
    0
    Occupation:
    Developer
    Location:
    I*N*D*I*A*
    i am such an I****t....

    thanx for the reply...
     

Share This Page