what functions are called when passing value to function

Posted by Tim on Stack Overflow See other posts from Stack Overflow or by Tim
Published on 2010-05-30T21:40:26Z Indexed on 2010/05/30 21:42 UTC
Read the original article Hit count: 232

Filed under:
|
|
|

In C++, if an object of a class is passed as a parameter into a function, the copy constructor of the class will be called.

I was wondering if the object is of nonclass type, what function will be called?

Similarly in C, what function is called when passing values or address of variables into a function?

Thanks and regards!

© Stack Overflow or respective owner

Related posts about c++

Related posts about c