Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   why is this not working?? (http://www.go4expert.com/forums/why-is-this-not-working-t14550/)

micsom 15Oct2008 08:05

why is this not working??
 
#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"

oogabooga 15Oct2008 08:31

Re: why is this not working??
 
What you have amounts to this:
Code:

void SUM (2,4) {
  printf("hi");
}

void main() {
  SUM (2,4);
}

Do you see the problem?

micsom 15Oct2008 08:43

Re: why is this not working??
 
i am such an I****t....

thanx for the reply...


All times are GMT +5.5. The time now is 15:07.