answersLogoWhite

0

What is the need for structure datatype?

Updated: 8/20/2019
User Avatar

Wiki User

6y ago

Best Answer

A structure is not a data type. We use structures to define new data types (user-defined data types). If we didn't have the ability to create user-defined types we'd be limited solely to the built-in data types and arrays of those types.

User Avatar

Wiki User

6y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the need for structure datatype?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Is array is structure or not?

Array is not a struct. Array only has one datatype, struct has arbitrary different datatypes.


What is the best datatype for storing your birthday?

in Unix: the datatype is "Date" in C++: the datatype is "char"


What is the best datatype for storing birthdays?

in Unix: the datatype is "Date" in C++: the datatype is "char"


Write a program that show size of datatype?

sizeof(datatype)


How does structure differ from an array?

structure is a collection of dissimilar datatypes whereas array is collection of similar datatypes.....


What is mean by parse in java?

It is used to convert the value of one datatype into a value of another datatype. Example- Integer.parseInt(in.readLine); It converts given value to Integer datatype.


What is datatype of pointers?

pointer


C program to implement tower of hanoi using array implementation of stack abstract datatype?

stack abstract datatype


How do you declare functions?

datatype function_name() { }


What datatype is weapon name?

double


What is user define datatype and explain it?

Any datatype which the user creates in code, that isn't native to the language. A linked list can be an example of this


Differences between structure and array?

The primary difference is that an array is a homogeneous datatype, meaning that it can hold data of a single type only (integer, floating-point, character etc.) . A structure on the other hand, is a heterogeneous datatype, thus it can hold data of more than one type.