calling function in c

Discussion in 'Programmer's Corner' started by TAKYMOUNIR, Oct 14, 2012.


    Thread Starter Active Member

    Jun 23, 2008
    in c language can i call function inside function
    like y=area(sin(x),y);
    where area is function(double area(double,double)) and sin(x) is function
    and also is this statement right printf("area is %g",area(x,y));
  2. spinnaker

    AAC Fanatic!

    Oct 29, 2009
    Please stop posting all of these threads and stick with one thread.

    And yes you can call a function inside a function. Instead of trying to learn C question by question, perhaps you should find a good tutorial on C and go through that first. Then ask questions if you still have them.
    TAKYMOUNIR likes this.
  3. takao21203

    Distinguished Member

    Apr 28, 2012
    On the MSDN forums people are advised to do the following before posting new threads:

    -read the documentation
    -try to solve it in place for a few hours
    -search the internet for additional information like for instance tutorials

    and things like that.

    If this all does not produce a solution, ask a question, in a way that shows that you already tried to solve it yourself.

    Considering what the OP wrote, actually trying to solve it in place would be possible to do easily.

    Also in general, it is prerequisite to make oneself familiar with the compiler manual. As a result, use the lingo used in the manual when spelling questions (as a starting point).
    TAKYMOUNIR likes this.