Thread: Dynamic memory allocation

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User jlou's Avatar
    Join Date
    Jul 2003
    Posts
    1,090
    You can figure this one out. Look at line 13. The error mentions ==. Look at the statement with the ==. Does it look right? Since == compares two things, what two things are you comparing? The error message tells you what you are actually comparing, is that what you meant to compare? The function name is search_year, maybe that will give you a hint at what you should change to make that comparison correct.

  2. #2
    Registered User
    Join Date
    Apr 2004
    Posts
    16
    Ok, so I need to make val type 'car' correct? I've tried doing that, and I still get the same error message.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. To find the memory leaks without using any tools
    By asadullah in forum C Programming
    Replies: 2
    Last Post: 05-12-2008, 07:54 AM
  2. Replies: 16
    Last Post: 01-01-2008, 04:07 PM
  3. Dynamic memory allocation.
    By HAssan in forum C Programming
    Replies: 3
    Last Post: 09-07-2006, 05:04 PM
  4. Dynamic memory allocation...
    By dicorr in forum C Programming
    Replies: 1
    Last Post: 06-24-2006, 03:59 AM
  5. pointers
    By InvariantLoop in forum C Programming
    Replies: 13
    Last Post: 02-04-2005, 09:32 AM