please answer this question

Discussion in 'Programmer's Corner' started by marvellous maria, Jan 17, 2008.

  1. marvellous maria

    Thread Starter New Member

    Jan 10, 2008
    8
    0
    why we use functions in C ??
    please ans this question and help me doind my homework !!
     
  2. hgmjr

    Moderator

    Jan 28, 2005
    9,030
    214
    One reason for the use of functions in C is that functions are a convenient way of coding a sequence of C-language instructions in such a way that the task performed by the instruction can be repeated called from multiple places within the main section of the program.

    Functions also facilitate the testing and subsequent debugging of the code.

    hgmjr
     
  3. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    145
    One word: Managability.

    Dave
     
  4. Mark44

    Well-Known Member

    Nov 26, 2007
    626
    1
    Actually, there's another word: Manageability ;-)
    Mark
     
  5. mrmeval

    Distinguished Member

    Jun 30, 2006
    833
    2
    It's bad to be dysfunctional!!!

    Hint: We use them for the same reason we don't put some trash in the landfill.
     
  6. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    145
    My bad spelling ;)

    In Dave-World they have the same meaning!

    Dave
     
  7. recca02

    Senior Member

    Apr 2, 2007
    1,211
    0
    tells u some1 recently had management lessons. ;)
    u might want to refer to a book (just read the introduction for functions).
    also try a google search.
     
  8. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    145
    Had a lasting effect as you can see! ;)

    Dave
     
  9. marvellous maria

    Thread Starter New Member

    Jan 10, 2008
    8
    0
    Hey guys i guess my question was about function not abt some management thing...anyways thnx hgmjr u were a real help...mr meval thnx for ur hint although i couldnt get it :p ....recca 02 thnx for ur help too....mark...well thnx for ur spelling check :p

    and last but not the least Dave actually i m new in ur dave world so need some time to get used to ur davy remarks n davy help !!!

    anyways guys pray for me that i get good marks in this assisgnment as i have to make 2 programs related to recursive functions and i havnt done that :(
     
  10. Dave

    Retired Moderator

    Nov 17, 2003
    6,960
    145
    It might help for your exam question.

    Good luck with your exam. :)

    Dave
     
Loading...