Thread: Crazy loops!

  1. #1
    Registered User
    Join Date
    Oct 2010
    Posts
    135

    Crazy loops!

    Could someone please help me out with this? I've been at it all night and my brain refuses to work. Basically, the input arguments are the arrays [A, B, C, D, E, F] and input. When I input C, I want the pointer to return C. Likewise for CD and CDE, but inputting Z or CDA will return NULL.

    EDIT: I got it! Not sure what I did though...
    Last edited by 843; 04-08-2011 at 10:13 AM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. arrays and loops
    By pmooney12 in forum C Programming
    Replies: 2
    Last Post: 11-22-2010, 10:38 PM
  2. loops and macros
    By ginom71 in forum C Programming
    Replies: 13
    Last Post: 07-18-2009, 01:04 PM
  3. Too many loops D:
    By F5 Tornado in forum C++ Programming
    Replies: 6
    Last Post: 12-03-2007, 01:18 AM
  4. crazy
    By DavidP in forum A Brief History of Cprogramming.com
    Replies: 23
    Last Post: 08-31-2002, 08:54 PM
  5. help with arrays and loops
    By jdiazj1 in forum C Programming
    Replies: 4
    Last Post: 11-24-2001, 04:28 PM