answersLogoWhite

0

The same as in C, struct.

User Avatar

Wiki User

13y ago

What else can I help you with?

Related Questions

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.


What is the name of the C structure type?

The type is struct. The name can be any valid variable name that is not a keyword or other reserved name.


Basic control structure available in c plus plus?

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


Do I need structure of turbo c plus plus?

Yes.


Defference between c plus plus and c?

these are difference in between c and c++: a) C is a SPL and C++ is a OOP. b) C has not concept of object but C++ has this feature. c) C has not 'class' name data type but C++ has.


What is swap in c plus plus programming language?

It is not a reserved word, so can be an identifier (name of a type/variable/function).


What are the two ways of initializing a structure variable in c plus plus?

Two ways? There are at least four: 1) Zero the memory allocated to the structure. 2) Shallow-copy the memory from another structure of the same type. 3) Deep-copy the memory from another structure of the same type. 4) Set the individual members.


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

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


How do you apply if in char type in c plus plus?

char x = "C"; if(char == 'C') { } else { }


User defined data type in c plus plus?

Use "typedef" : both in C and C++.


What is the main use for type def seems to be defining structures?

When you define a structure, C does not provide a type for that structure. In order to subsequently declare an instance of that structure, you need to use the word struct again. The typedef allows you to declare a type equivalent to the structure. For example... struct person { char* name, int phone}; struct person myperson; With typedef, you can simplify to... typedef struct person { char * name, int phone} person;person myperson; In C++, this is automatic, but not in C.


How do you declare structure?

In programming, particularly in languages like C or C++, a structure is declared using the struct keyword followed by the structure name and a set of curly braces containing its members. For example: struct Person { char name[50]; int age; }; This defines a structure named Person with two members: name and age. After the declaration, you can create variables of that structure type to store data accordingly.