What are user defined data types, C/C++ Programming

Q: What are User Defined data types?

C supports an extraordinary feature known as "type definition" that permits users to define an identifier that would represent an existing data type. The typedef statement redefines the name of an available variable type. Consider the instance where the type unsigned long int is redefined to be of type ULINT.

typedef unsigned long int ULINT;

Now we can state variables of the type unsigned long int by writing

ULINT xl,x2;

Instead of writing the long declaration.

That signifies typedef provides a short and meaningful way to call a data type. By reducing apparent complexity and the length of data types typedef can help to clarify source listing and to save energy and time spend in understanding a program.

The universal syntax of a typedef command can be written as

typedef data - type identifier 

Posted Date: 6/13/2013 6:41:07 AM | Location : United States







Related Discussions:- What are user defined data types, Assignment Help, Ask Question on What are user defined data types, Get Answer, Expert's Help, What are user defined data types Discussions

Write discussion on What are user defined data types
Your posts are moderated
Related Questions

The concept of a string in C is difficult, because a string is a collection of characters stored in memory terminated by a NULL string i.e. \0. Let us consider the string Hello. Th

Problem: (a) Show the Java approach to event processing by explaining how event handling works in Java. Make use of a suitable example to support your answer. (b) Describe

Changing Field width The printf() and scanf() functions from the standard library, use width specifier for controlling the width of its output . Similarly, the ostream class al

SquareMaze The SquareMaze class should be declared and defined in maze.h and maze.cpp, respectively. Each SquareMaze object will represent a randomly-generated square maze and its

Define Bitwise Left Shift and Right Shift Operators: >? The bitwise shift operators shift their first operand right (>>) or left ( // Illustration of the bitwise right shi

Project Description: P2P media streaming browser (IE, Chrome, Firefox) plug-in needed that is compatible with Win Xp,7,8 that is Windows Firewall friendly Example like Swarm

Smugglers are becoming very smart day by day. Now they have developed a new technique of sending their messages from one smuggler to another. In their new technology, they are send

Write a program to find the area under the curve y = f(x) between x = a and x = b, integrate y = f(x) between the limits of a and b. The area under a curve between two points can b

removing jewel from a necklace