why is this not working??

Go4Expert Member
15Oct2008,08:05   #1
micsom's Avatar
#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"
Ambitious contributor
15Oct2008,08:31   #2
oogabooga's Avatar
What you have amounts to this:
Code:
void SUM (2,4) {
  printf("hi");
}

void main() {
  SUM (2,4);
}
Do you see the problem?
Go4Expert Member
15Oct2008,08:43   #3
micsom's Avatar
i am such an I****t....

thanx for the reply...