Derived data type, C/C++ Programming

Derived Data Type:

Array is derived data type to store large collection of data of only one data type.

int mark[100];

char names[25];

Function: will be discussed early. Pointer:

Pointer variable works similar to pointer in C. int a, *ptr;

ptr = &a;

C++ has added features called constant pointer and pointer to a constant. char* const ptr1 = "good"; It is constant pointer

int const *ptr = &a; It is pointer to a constant

 

 

Posted Date: 9/20/2012 7:32:49 AM | Location : United States







Related Discussions:- Derived data type, Assignment Help, Ask Question on Derived data type, Get Answer, Expert's Help, Derived data type Discussions

Write discussion on Derived data type
Your posts are moderated
Related Questions
Byteland county is very famous for luminous jewels. Luminous jewels are used in making beautiful necklaces. A necklace consists of various luminous jewels of particular colour. Nec

Purpose This assignment is an exercise in implementing the queue ADT using a singly-linked list. This assignment also introduces the concept of templates. Assignment Th

I want Packet capture analysis Project Description: Need assistance in debugging some packet capture Skills required is C Programming

write a C program for padovan string for a natural number


Explain the parts of operators Assignment Operators The equal (=) sign is used for assigning a value to another. The left hand side has to be a variable (lvalue, which exc

Static Data Members: A data member inside the class can construct as static data member.   There are few guidelines to be followed when declaring static data member.

C language lets us do this in a structure definition by putting: bit length after the variable that is. struct packed_struct { unsigned int f1:1; unsigned int f2:1; unsigned

Variable Declaration This declaration of variables in the C language is permitted only in the starting of their block, prior to executable program statements. In C++ declaratio

#quesdifferentiate betweenrelocatable and self relocating program with exampletion..