开发者

printf function in c

开发者 https://www.devze.com 2023-01-29 09:27 出处:网络
Does printf function in c开发者_运维知识库 calls argument by reference or by value?Everything in C is passed by value.

Does printf function in c开发者_运维知识库 calls argument by reference or by value?


Everything in C is passed by value.

Even things that look like they're passed by reference (i.e., pointers to variables so that you can change the underlying variables) are in fact the values of the pointers being passed by value.


There's no pass by reference in C, everything is by value or pointer-to-address by value


call by reference is not applicable in c. As in c we can't create alias of any variable,so eiher call by value or call by pointer mechanism is supported here..

0

精彩评论

暂无评论...
验证码 换一张
取 消