#1
  1. No Profile Picture
    Registered User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Nov 2012
    Posts
    2
    Rep Power
    0

    Problem with programming with functions


    I am facing a lot of problems with c programming with functions. In particular I could not solve a very simple problem of calculating x^y using functions.But I do not want it using the <math.h> and power function. If anyone can provide its solution with proper explanation it will be very helpful for me. The books I have come across are not very helpful. The name of any good book or any other reference will also be very helpful to me.
  2. #2
  3. Contributed User
    Devshed Specialist (4000 - 4499 posts)

    Join Date
    Jun 2005
    Posts
    4,378
    Rep Power
    1871
    pow

    > The books I have come across are not very helpful. The name of any good book or any other reference will also be very helpful to me.
    Books teach the language (to varying degrees of fidelity), and probably explain some of the more basic standard library functions.

    To see the full extent of functions for your compiler, you should read the local manual pages (or help files).
    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

IMN logo majestic logo threadwatch logo seochat tools logo