Help for C array functions

This is a discussion on Help for C array functions within the C Programming forums, part of the General Programming Boards category; Please help i am a fresher in c I want to create a program which takes the names from the ...

  1. #1
    Registered User
    Join Date
    Aug 2010
    Posts
    1

    Help for C array functions

    Please help i am a fresher in c
    I want to create a program which takes the names from the user and arranges them in ascending and descending order like for eg
    1st output
    Sam
    Tortoise

    and 2nd output
    Tortoise
    Sam

    Since S comes before T

    Also the code should be written in function and not main
    main should only call the function

  2. #2
    Super Moderator
    Join Date
    Sep 2001
    Posts
    4,913
    So what do you need help with? If you didn't notice when you signed up, the board has a very strict policy against asking people to do your homework for you. We're happy to help with homework problems when you've made a serious attempt and you have a specific problem or question.

    You need to understand how to work with strings in C. This site has a good tutorial, and there are many others that can be easily found online. The second thing you need is a sorting algorithm. There are a number of them described here: AI Horizon: Tutorials on Basic Topics in Computer Science.

  3. #3
    Registered User
    Join Date
    Aug 2010
    Posts
    35
    Are you having trouble with something in particular, or is your question "Will someone do my homework please?"

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Array of functions
    By frktons in forum C Programming
    Replies: 29
    Last Post: 06-30-2010, 09:51 AM
  2. Array of Functions?
    By CPlus in forum C++ Programming
    Replies: 10
    Last Post: 05-10-2010, 02:06 PM
  3. Replies: 16
    Last Post: 05-29-2009, 07:25 PM
  4. Template Array Class
    By hpy_gilmore8 in forum C++ Programming
    Replies: 15
    Last Post: 04-11-2004, 11:15 PM
  5. Merge sort please
    By vasanth in forum C Programming
    Replies: 2
    Last Post: 11-09-2003, 11:09 AM

Tags for this Thread


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