Like Tree1Likes
  • 1 Post By Salem

Help me ( pointer & UDF )

This is a discussion on Help me ( pointer & UDF ) within the C Programming forums, part of the General Programming Boards category; Write a program to read values from the user and arrange in ascending and desecending order ( give 2 choice ...

  1. #1
    Registered User
    Join Date
    Oct 2012
    Posts
    11

    Help me ( pointer & UDF )

    Write a program to read values from the user and arrange in ascending and desecending order ( give 2 choice to user if user press 1 then arrang it to Ascending order if press 2 then arrange it into descending order) Using pointer and udf...


    I can do this program with simple loop and array ..

    but how to do it with using poiner & UDF ..

    help me...
    thankx ...

  2. #2
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    I'm assuming that UDF means User Defined Function.

    To see how to migrate code from main to a function.
    A development process

    There are plenty of posts on how to pass arrays to functions.
    Devil211272 likes this.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  3. #3
    Registered User
    Join Date
    Oct 2012
    Posts
    11
    ok.. but plz give me whole answer of program. i can read it later..
    bcoz tomorrow is assignment submission so i need program.

  4. #4
    and the hat of wrongness Salem's Avatar
    Join Date
    Aug 2001
    Location
    The edge of the known universe
    Posts
    32,333
    Don't have time!?
    Announcements - C Programming

    You could be half-way to having it done in the 20 minutes you've wasted waiting for someone else to do your homework.

    > I can do this program with simple loop and array ..
    Is this just a boast, or have you actually written the code?
    If you post what you have, we would be able to tell you a few facts to help you move forward.

    But complete homework on a plate - forget it.
    If you dance barefoot on the broken glass of undefined behaviour, you've got to expect the occasional cut.
    If at first you don't succeed, try writing your phone number on the exam paper.
    I support http://www.ukip.org/ as the first necessary step to a free Europe.

  5. #5
    Registered User
    Join Date
    Oct 2012
    Posts
    11
    ok.. i will do it..

    i know UDF very well
    but very very weak in pointer.
    that's y i ask for the program..

    And i am from that area in which education is not too good.
    so if i not do any program or skip any program or do another easy program .. teacher cant see it...so i have too much (lots of) time.

    By the way thankxx. i will downlaod pointer video first and then read your link
    then do it myself

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Replies: 11
    Last Post: 06-27-2012, 07:05 AM
  2. Replies: 3
    Last Post: 10-30-2009, 04:41 PM
  3. Replies: 9
    Last Post: 06-13-2009, 02:31 AM
  4. Replies: 1
    Last Post: 03-24-2008, 10:16 AM
  5. Replies: 4
    Last Post: 08-27-2007, 11:51 PM

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