blackleopard92 Panel of Selectors Joined Aug 16, 2002 Location Delhi, India Online Cricket Games Owned Jul 11, 2006 #166 Ritwik said: Ok if that is the case I'll have to reinstall TC and give it a go .... Click to expand... what?u don't have VC++?
Ritwik said: Ok if that is the case I'll have to reinstall TC and give it a go .... Click to expand... what?u don't have VC++?
R Ritwik co-founder Joined Dec 17, 2001 Location New Delhi Jul 11, 2006 #167 As I told you in messenger I prefer working on BC/TC especially for smaller programs.
blackleopard92 Panel of Selectors Joined Aug 16, 2002 Location Delhi, India Online Cricket Games Owned Jul 11, 2006 #168 Ritwik said: As I told you in messenger I prefer working on BC/TC especially for smaller programs. Click to expand... I agree that making workspaces for 10 line programs isn't worth it
Ritwik said: As I told you in messenger I prefer working on BC/TC especially for smaller programs. Click to expand... I agree that making workspaces for 10 line programs isn't worth it
sid_19840 International Coach Joined Jun 28, 2005 Location Kolkata,India Online Cricket Games Owned Jul 18, 2006 #169 ok,lets see if you can figure the output of this out.(Feeling Bored ) Code: #define SQ(x) x*x main() { int a=SQ(2+1); printf("%d",a); }
ok,lets see if you can figure the output of this out.(Feeling Bored ) Code: #define SQ(x) x*x main() { int a=SQ(2+1); printf("%d",a); }
R Ritwik co-founder Joined Dec 17, 2001 Location New Delhi Jul 18, 2006 #170 You do love macros don't you ? Well the output is 5 since the macro expansion will be as follows: 2+1*1+2 It would have been 9 had you defined your macro as #define SQ(x) (x)*(x)
You do love macros don't you ? Well the output is 5 since the macro expansion will be as follows: 2+1*1+2 It would have been 9 had you defined your macro as #define SQ(x) (x)*(x)
sid_19840 International Coach Joined Jun 28, 2005 Location Kolkata,India Online Cricket Games Owned Jul 20, 2006 #171 Ritwik said: You do love macros don't you ? Well the output is 5 since the macro expansion will be as follows: 2+1*1+2 It would have been 9 had you defined your micro as #define SQ(x) (x)*(x) Click to expand... Correct.Sorry that I was late on replying this,been a bit busy for the past couple of days.
Ritwik said: You do love macros don't you ? Well the output is 5 since the macro expansion will be as follows: 2+1*1+2 It would have been 9 had you defined your micro as #define SQ(x) (x)*(x) Click to expand... Correct.Sorry that I was late on replying this,been a bit busy for the past couple of days.