![]() |
| | #1 |
| Registered User Join Date: Nov 2009
Posts: 1
| "##_##" means i came across one sentence... can anyone tell me what it means? #define set(x,y) (x|=x##_##y) what does that symbol "##_##" means in the code... with regards shiva |
| eshivaprasad is offline | |
| | #2 |
| Registered User Join Date: Oct 2009 Location: While(1)
Posts: 316
| it will concatenate the input values dear |
| RockyMarrone is offline | |
| | #3 |
| Jack of many languages Join Date: Nov 2007 Location: Katy, Texas
Posts: 1,931
| Look in your C book for preprocessor directives, under substituting macro variables.
__________________ Mac and Windows cross platform programmer. Ruby lover. Memorable Quotes From Recent Posts: I can't remember. |
| Dino is offline | |
| | #4 |
| Registered User Join Date: Nov 2009
Posts: 8
| it means if #define a(x) 1##x and you ues printf to do this: printf("%d",a(34)); it'll prodecu 134 |
| rpbear is offline | |
| | #5 |
| Registered User Join Date: Apr 2006
Posts: 1,193
| It's use to concatenate the parameters passed as identifiers. The preprocessor operator here is ##. set(var,feild1) would evaluate to (var|=var_feild1) for example.
__________________ It is too clear and so it is hard to see. A dunce once searched for fire with a lighted lantern. Had he known what fire was, He could have cooked his rice much sooner. |
| King Mir is online now | |
![]() |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| What does this code means? | junkeat90 | C++ Programming | 6 | 01-14-2008 05:03 AM |
| can u help me wht this command means | cnu_sree | C Programming | 2 | 10-27-2007 05:57 AM |
| what does "close wait" and "fin_wait2" means? | hanhao | Networking/Device Communication | 0 | 07-18-2005 05:14 AM |
| Do you know what this compiler error means? | Zalbik | C++ Programming | 2 | 02-26-2003 04:20 PM |
| Can someone explain to me what this code means | Shadow12345 | C++ Programming | 3 | 12-22-2002 12:36 PM |