How to insert values in array - c++ program, C/C++ Programming

How to insert values in array - c++ program:

Write a program to insert values in array

void main()

{

int a[2][3][2]={

                                {

                                  {2,4},

                                  {7,8} ,

                                  {3,4}

                                 },

                                 {

                                   {2,2} ,

                                   {2,3}  ,

                                   {3,4}

                                  }

                                 };

                clrscr();

 

       printf("\na=%u",a);

       printf("\n*a=%u",*a);

       printf("\n**a=%u",**a);

       printf("\n***a=%u",***a);

       printf("\na+1=%u",a+1);

       printf("\n*a+1=%u",*a+1);

       printf("\n**a+1=%u",**a+1);

                printf("\n***a+1=%u",***a+1);

                getch();

                }

Posted Date: 10/19/2012 3:00:55 AM | Location : United States







Related Discussions:- How to insert values in array - c++ program, Assignment Help, Ask Question on How to insert values in array - c++ program, Get Answer, Expert's Help, How to insert values in array - c++ program Discussions

Write discussion on How to insert values in array - c++ program
Your posts are moderated
Related Questions
progarm in c for area under curve   #include float start_point, /* GLOBAL VARIABLES */ end_point, total_area; int numtraps;

Prepare data from fixed OCR areas scanned. Project Description: Project is to design software which can use character recognition only on certain areas of scanned pdf's/ jpeg

Rules of Inheritance: Private members are not inherited; the members can be accessed only within its class. It cannot be used through the object. Protected members are

C program to print R diagonal triangle: #define rows 3 #define cols 3 void main() {                 int i=0,j=0;                 int arr[rows][cols];

Explain about Evaluation of Expression in c language? An Expressions are evaluated using an assignment statement of the form: variable = expression; The Variable is any v

How do you declare an integer variable? Explain with an example.

how to write c code to solve assignment problem?

The program must use the file named on the command line as its input file. Suppose the program is named pdbtool. Then if the user types pdbtool 1A36.pdb the program must read the d

Inline function: It is a function without prototype. The function is defined above main. The function should  be  declared  above  main  function.                  Declaring