IT Community - Software Programming, Web Development and Technical Support

Difference between "C structure" and "C++ structure".

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".?...


Go Back   IT Community - Software Programming, Web Development and Technical Support > Software Development > C and C++ Programming

Register FAQ Members List Calendar Mark Forums Read
  #1 (permalink)  
Old 06-06-2007, 03:58 AM
vigneshgets vigneshgets is offline
D-Web Genius
 
Join Date: Mar 2007
Posts: 904
vigneshgets is on a distinguished road
Wink Difference between "C structure" and "C++ structure".

Hi Guys can anyone let me know th Difference between "C structure" and "C++ structure".?
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Sponsored Links
  #2 (permalink)  
Old 07-17-2007, 01:11 AM
prasath prasath is offline
D-Web Sr.Programmer
 
Join Date: Jul 2007
Location: Chennai
Posts: 173
prasath is on a distinguished road
Wink Re: Difference between "C structure" and "C++ structure".

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
Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


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


All times are GMT -7. The time now is 06:38 PM.


Copyright ©2004 - 2007, DiscussWeb. All Rights Reserved.

SEO by vBSEO 3.0.0