>id like to ask if ever you could give me a very simple Array program.
/*
* integers.c
* display an array of integers in consecutive order
* author: Aia
*/
#include <stdio.h>
int main ( void )
{
int integers[] = { 1, 2, 3, 4, 5 };
int i;
for ( i = 0; i < sizeof integers / sizeof ( int ); i++ )
{
printf( "%d ", integers[i] );
}
return 0;
}
A very simple program. I release it to you under the GPL license. You can knock yourself out
modifying it and making any kind of changes you see fit.
Last edited by Aia; Dec 3rd, 2007 at 9:23 pm.
Reputation Points: 2224
Solved Threads: 218
Nearly a Posting Maven
Offline 2,304 posts
since Dec 2006