Hi everyone, I have a couple of questions?
1.this is part of my main function
when i try to compile it i get syntax error before j as well as f1?
Can anyone provide clues on why is that happening?
2.
i get an warning : structure defined inside inside parms on compiling
even this one gives 2 warning saying that
warning : structure defined inside parms
warning: empty declarations
Any help is appreciated. Thanks in advance.
1.this is part of my main function
Code:
////////////////////////////// int main() { FILE *f1; int i,j; j=100000000; int intData[1000]; f1=fopen("out3.txt","wt"); /* Generating 1000 integers from 100,000,001 to 100,001,000 */ for (i =0; i <1000; i++) { intData[i] = ++j; } /////////////////////////////
Can anyone provide clues on why is that happening?
2.
Code:
////////////////////////// struct t_node { void *item; struct t_node *left; struct t_node *right; } node; //////////////////////////
Code:
////////////////////////////// struct t_collection { /* Note that size is not needed any longer! */ int (*ItemCmp)( void *, void * ); struct t_node *node; }; ////////////////////////////////////////
warning : structure defined inside parms
warning: empty declarations
Any help is appreciated. Thanks in advance.
Comment