The Clear

Please support our C advertiser: Programming Forums - DaniWeb Sister Site
Reply

Join Date: Nov 2007
Posts: 4
Reputation: rxylion is an unknown quantity at this point 
Solved Threads: 0
rxylion's Avatar
rxylion rxylion is offline Offline
Newbie Poster

The Clear

 
0
  #1
Dec 3rd, 2007
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.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 2,033
Reputation: Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of Aia has much to be proud of 
Solved Threads: 177
Aia's Avatar
Aia Aia is offline Offline
Postaholic

Re: The Clear

 
0
  #2
Dec 3rd, 2007
>id like to ask if ever you could give me a very simple Array program.
  1. /*
  2.  * integers.c
  3.  * display an array of integers in consecutive order
  4.  * author: Aia
  5.  */
  6. #include <stdio.h>
  7.  
  8. int main ( void )
  9. {
  10. int integers[] = { 1, 2, 3, 4, 5 };
  11. int i;
  12.  
  13. for ( i = 0; i < sizeof integers / sizeof ( int ); i++ )
  14. {
  15. printf( "%d ", integers[i] );
  16. }
  17.  
  18. return 0;
  19. }
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.
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Similar Threads
Other Threads in the C Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC