#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"
|
Go4Expert Member
|
|
| 15Oct2008,08:05 | #1 |
|
#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 |
|
What you have amounts to this:
Code:
void SUM (2,4) {
printf("hi");
}
void main() {
SUM (2,4);
}
|
|
Go4Expert Member
|
|
| 15Oct2008,08:43 | #3 |
|
i am such an I****t....
thanx for the reply... |