![]() |
Preprocessor's question
#define f(a) a*g #define g(a) f(a) int main( void ) { int i = f(2)(9); return 0; } i will be 2*f(9) ? or 2*9*g ? -- [1;30m|[m [32m ___[m [32m(-_-)[m [32m<¡ä¡ä>[1;30m¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w¢w [1;37mªÅ´ßªª³õ [0;37mshepjeng.twbbs.org [1;30m¢w¢w¢w [1;30m¡þ[m [36mplum.cs.nccu.edu.tw[m |
Re: Preprocessor's question
GAMEMASTER.bbs@shepjeng.twbbs.org wrote:
> #define f(a) a*g > #define g(a) f(a) > > int > main( void ) > { > int i = f(2)(9); > return 0; > } > > i will be 2*f(9) ? > > or 2*9*g ? int main(void) { int i = 2*9*g; return 0; } -- Martin Ambuhl |
| All times are GMT. The time now is 09:18 PM. |
Powered by vBulletin®. Copyright ©2000 - 2013, vBulletin Solutions, Inc.
SEO by vBSEO ©2010, Crawlability, Inc.