Function call mechanism in c

Please tell me function call mechanism in c and what is better bet. return and passing pointer argument to function...

Reply to
vjay
Loading thread data ...

You forgot to say how many marks the answer is worth.

Reply to
ian.okey

All the information is here

formatting link

Alternatively, the answer will be in your course notes and if you'd bothered to turn up for class you would know this.

Reply to
Tom Lucas

Read the paragraph before the question section

Meindert

Reply to
Meindert Sprang

This depends on the processor and the compiler. Many processor makers publish the specs for a binary call compatibility standard. This ensures that libraries made by various compilers can be interoperable. Conformance is usually voluntary, of course.

If you make a compiler and you don't want to work with libraries made by others then its entirely up to you how you define the calling conventions.

Reply to
Eric

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.