![]() |
| | #1 |
| Registered User Join Date: Feb 2009
Posts: 3
| beginner here need help with an array code |
| Ohshtdude is offline | |
| | #2 |
| Kernel hacker Join Date: Jul 2007 Location: Farncombe, Surrey, England
Posts: 15,686
| Right. The homework policy here at Cprogramming.com is that you show us what you've done and we will help you - not "Post your homework assignment and someone will post back the answer". -. Mats
__________________ Compilers can produce warnings - make the compiler programmers happy: Use them! Please don't PM me for help - and no, I don't do help over instant messengers. |
| matsp is offline | |
| | #3 |
| Registered User Join Date: Feb 2009
Posts: 3
| sorry Last edited by Ohshtdude; 02-01-2009 at 08:07 PM. |
| Ohshtdude is offline | |
| | #4 |
| and the Hat of Guessing Join Date: Nov 2007
Posts: 8,740
| If you are dealing with a[i], how can you tell whether i is even or odd? |
| tabstop is offline | |
| | #5 |
| Registered User Join Date: Feb 2009
Posts: 3
| no like a[0] being even a[1] being odd a[2] being even etc |
| Ohshtdude is offline | |
| | #6 |
| Registered User Join Date: Dec 2006
Posts: 1,780
| how about adding 2 in each iteration? |
| cyberfish is offline | |
| | #7 |
| and the Hat of Guessing Join Date: Nov 2007
Posts: 8,740
| |
| tabstop is offline | |
![]() |
| Tags |
| arrays, beginner |
| Thread Tools | |
| Display Modes | |
|
Similar Threads | ||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| allocation and reallocation of memory dynamically of an integer array | zamir | C++ Programming | 16 | 05-29-2009 07:25 PM |
| array of pointers/pointer arithmetic | tlpog | C Programming | 18 | 11-09-2008 07:14 PM |
| Dynamic array of structures containing yet another dynamic array of structures | innqubus | C Programming | 2 | 07-11-2008 07:39 AM |
| beginner: dynamic array of strings | pc2-brazil | C++ Programming | 10 | 04-29-2008 04:29 PM |
| question about multidimensional arrays | richdb | C Programming | 22 | 02-26-2006 09:51 AM |