This is a discussion on Differenciate the below codes within the C and C++ Programming forums, part of the Software Development category; Hi, What's the difference between these two declarations? struct x1 { ... }; typedef struct { ... } x2; Thanks, Prasath.K...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| In the first code if you want to create a variable(s) of type x1 you should use the following notation struct x1 a,b,c; where as in the second example to create a variable(s) of type x2 you can use the shortest notation like the following since it is a typedef x2 a,b,c
__________________ SeeSamJagan- Sky is not the "LIMIT", Death is not the END, There is still something beyond.... |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| HALLOWEEN SPECIAL - one day only - 25 coupon codes to save 40% a life long >> | Webdomain.com | Web Hosting Deals | 1 | 10-10-2008 06:02 PM |
| How to execute codes when TWO keys are pressed in Flash | aramesh | Flash Actionscript Programming | 1 | 08-16-2007 02:44 AM |