We are running a survey to help us improve the experience for all of our members. If you see the survey appear, please take the time to tell us about your experience if you can.
i tried this code and it is failes! what is wrong?
#define BEGIN { // use proper blocks #define END } #define INC ( i) i = i + 1 // invrement variable i int* testtest() BEGIN int buf1 [ 10 ]; // make a buffer of variables int * buf2 10 ] ; // and make a copy for pointing int i ; // use a variable to count for (i = 0; i == 10 ? 0 : -1 ; INC ( i ) ) // nullify variabel to zero BEGIN buf1 [ i ] = i; / / save variable to buffer * buf2 [ i ] = & i; // save variable to other one END; // .. println ( 'the variable is ' + i ) END; <pre<
what is wrong?
The "code" contains everything from basic syntax errors to logical errors to bad programming style (one thing it doesn't contain are useful comments, though).
In its present form, it wouldn't even compile.