calling function in c

Thread Starter

TAKYMOUNIR

Joined Jun 23, 2008
352
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));
thanks
 

spinnaker

Joined Oct 29, 2009
7,830
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.
 

takao21203

Joined Apr 28, 2012
3,702
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).
 
Top