Circuit Negma

C++, C, VB.NET, PCB, Electronics, Circuit Design

more about arrays

Posted by Circuit Negma on February 6, 2006


#include <stdio.h>

main()
{
       int array[] = {3, 6, 8, 9, 12};
       int array2[10] = {2};            // the first element is set to 2, and the rest a set to zero.
       
       int i,j;
       
       for ( i = 0; i < 5; i++)
       {
          printf("index [%d] = %\n",i,array[i]);
       }
       
       
       fflush(stdin);
       getchar();
}


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

 
%d bloggers like this: