Search This Blog

Tuesday, September 21, 2010

C - #define question

Programmer Question

When you see a line like:



#define IX(i,j) ((i)+(N+2)*(j))


is that equivalent to:



int IX(int i, int j) {

return ((i)+(N+2)*(j));

}


How do you know the return type etc?



Find the answer here

No comments:

Post a Comment

Related Posts with Thumbnails