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
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

Write a program to get the largest element in an array using Function? # include int largest(int b[],int); main() { int lar,a[5]={12,2,36,40,5}; lar=largest(a,n); printf("

Explain about the Floating point Constants in c language? A floating point constant is the number that contains either a fraction or decimal part. If an exponent is present its

#write code for rotation in c

Define the Volatile Keyword Qualifiers in C Language? The volatile keyword proceed as a data type qualifier and a volatile variable is for dynamic use. E.G. for data that is to

How many levels deep can include files be nested? - As such, there is no limit to number of levels of nested include files you can have however your compiler might run out of s

Create a user-defined data structure (struct) called Node that represents a node within a linked list where the "data" stored in each node is a pointer to a Car object.    a) Wr

Explain about the Integer constants in c language? An integer constant is the integer valued number and it refers to a sequence of digits. A decimal integer constant includes o

Project Description: 1) Develop banking software 2) Payment Gateway System There is some other system available for development. I'm willing to show long-term opportunity