answersLogoWhite

0

A structure in C++ is nearly the same as a structure in C. struct abc {

int item1;

int item2;

... etc...

} mystructure; There are several differences. Two examples are... In C++, you get automatic typedef'ing, so that (in this example) you would not have to say struct abc mysecondstructure; - you can just say abc mysecondstructure;. In C++, structures are very similar to classes. In fact, structures are classes, which is why you get automatic typedef'ing.

User Avatar

Wiki User

15y ago

What else can I help you with?

Related Questions

Basic control structure available in c plus plus?

The basic control structure in C++ is the if statement.


What is the name of the structure type in C plus plus?

The same as in C, struct.


Do I need structure of turbo c plus plus?

Yes.


What is the price of the book data structure using c and c plus plus by tanenbaum?

225 Rs. after discount........


What is the freezing point of turpentine?

The freezing point of turpentine is around -35 to -15 degrees Celsius.


Can you give an example of a structure in C plus plus?

struct point { int x; int y; };


What is the general structure of a C plus plus Language?

The central feature of any C++ program is classes which can be used to express ideas directly in code.


Basic structure of c n c plus plus?

The basic structure of a C or C++ program is built around types. A structure is a type. A function is a type. A class is a type. All of these types can be built from primitive (built-in) types and can be used to create ever-more complex types.


Code for 8086 assembler in C or C plus plus?

Yes, you can write an 8086-assembler in C or C++. It is not that easy, though.It is posible with asm or __asm__ directive with combination of volatile or __volatile__ for non memory affecting code.Sample:__asm__ ("mov %ax, %bx");Move content of ax registry to bx.Follow howto page for tutorial. http://www.ibiblio.org/gferg/ldp/GCC-Inline-Assembly-HOWTO.html


What the difference between c and c plus plus?

The fundamental difference is that in C++ object-oriented programming (OOP) was added. C is a procedural language (that means. top-down structure design), where as C++, which is an extension of C itself, is an object oriented language.


How do you display stars in c plus plus using the if else structure and a for loop and you use void main?

It depends on what program you design really


What is b plus b plus b plus c plus c plus c plus c?

b+b+b+c+c+c+c =3b+4c