Well As What I Have Expected There You Are Again!
actually id like to ask if ever you could give me a very simple Array program.
I read books but i wanted to have other simple situations about using array.
Well As What I Have Expected There You Are Again!
actually id like to ask if ever you could give me a very simple Array program.
I read books but i wanted to have other simple situations about using array.
>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.
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.