简体   繁体   中英

printf function in c

c中的printf函数是通过引用还是通过值调用参数?

Everything in C is passed by value.

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

在C中没有通过引用传递,一切都是按值或按指针到地址的值

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..

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM