This is a discussion on Difference between "C structure" and "C++ structure". within the C and C++ Programming forums, part of the Software Development category; Hi Guys can anyone let me know th Difference between "C structure" and "C++ structure".?...
| |||||||
| Register | FAQ | Members List | Calendar | Mark Forums Read |
| |||
| Hi, Structures: ----------- In C, a non-typedef structure definition often looks like this: struct frobnitz { int foo; int bar; }; struct frobnitz frob; In C++, the following can create an instance of a structure variable without requiring the keyword "struct": struct frobnitz { int foo; int bar; }; frobnitz frob; Note that structure definitions using typedef, as taught in CS106, works just as well in C++ as it does in C. Thanks, Prasath.K |
![]() |
| Thread Tools | |
| Display Modes | |
| |
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Difference between "C structure" and "C++ structure". | Sabari | C and C++ Programming | 2 | 08-09-2007 08:41 AM |
| I keep getting "Data Missing" when I click the "back" button in my browser. How can I | oxygen | HTML, CSS and Javascript Coding Techniques | 1 | 07-28-2007 01:12 AM |
| Why do I get "HTTP 500" error(or "(DLL)initialization routine failed")in my browser? | kingmaker | ASP and ASP.NET Programming | 1 | 07-20-2007 04:38 AM |
| Difference between "APPLET" and "APPLICATION" | prasath | Java Programming | 1 | 07-17-2007 07:51 AM |
| Difference between a "assignment operator" and a "copy constructor"? | vigneshgets | C and C++ Programming | 2 | 07-12-2007 05:30 AM |