skip to main
|
skip to sidebar
C Programming Tips
Thursday, January 7, 2010
Template In C
You can create a template using Macro in C like the following :
#define add(a,b,op) (sizeof(a)>2)?printf("%f",a##op##b):printf("%d",a##op##b);
0 comments:
Post a Comment
Newer Post
Home
Subscribe to:
Post Comments (Atom)
http://www.gabaritangles.com
http://www.vetathepurplestage.com
Search For More Tips in C
Subscribe To
Posts
Atom
Posts
Comments
Atom
Comments
Blog Archive
Blog Archive
November (2)
September (1)
August (4)
July (1)
June (3)
May (6)
April (9)
March (9)
February (8)
January (11)
December (14)
November (23)
October (21)
September (28)
August (50)
July (19)
June (37)
May (23)
April (24)
March (44)
February (29)
January (6)
Discussion Box
Followers
0 comments:
Post a Comment