strings and arrays

This is a discussion on strings and arrays within the C Programming forums, part of the General Programming Boards category; I'm kind of confused with all these arrays and strings. I have to make a program that will check if ...

  1. #1
    Registered User
    Join Date
    Jan 2012
    Posts
    19

    strings and arrays

    I'm kind of confused with all these arrays and strings. I have to make a program that will check if a word which is inputted by the user is a palindrome or not. I have an idea of how the code could look like, but I don't even know how to scan the word from the user and work with it as a string :|

  2. #2
    Registered User
    Join Date
    Jan 2009
    Location
    Australia
    Posts
    375
    Well you "have" to do this which means it must be an assignment of some type so you must have learnt something.

    What have you learnt so far? Have you covered what an array actually is? Do you know how strings are stored in C? What sort of things have you already worked with?

    I could probably just give you some links to read straight up from reading your first post but if you make your question more specific then the help you will get will be a lot better.

  3. #3
    Registered User
    Join Date
    May 2009
    Posts
    2,521
    Last edited by stahta01; 02-12-2012 at 11:49 AM.
    "Programming today is a race between software engineers striving to build bigger and better idiot-proof programs, and the universe trying to produce bigger and better idiots. So far, the Universe is winning." Rick Cook

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Arrays/strings
    By Nextstopearth in forum C Programming
    Replies: 2
    Last Post: 10-22-2008, 07:31 PM
  2. Replies: 2
    Last Post: 02-23-2004, 05:34 AM
  3. Arrays of Strings
    By Unregistered in forum C++ Programming
    Replies: 4
    Last Post: 05-30-2002, 01:38 PM
  4. Strings And Arrays
    By helbovine in forum C++ Programming
    Replies: 2
    Last Post: 02-10-2002, 02:06 PM
  5. Strings & Arrays
    By Unregistered in forum C Programming
    Replies: 1
    Last Post: 12-11-2001, 06:50 PM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21