logoalt Hacker News

colejohnson66yesterday at 10:28 PM2 repliesview on HN

Yes it does. It just decays to a pointer at the slightest touch.


Replies

Mikhail_Edoshintoday at 4:11 AM

There are differences. E.g. va_xxx functionality may be implemented either with a pointer or an array. The difference becomes visible if you try to pass a va_list to another variadic function and then extract it later with va_arg. About half of compilers will happily do that, and another half will refuse to compile the naive version. (There's a more sophisticated proper way.)

https://stackoverflow.com/questions/79897621

throwaway27448yesterday at 11:19 PM

So why are we discussing it

show 1 reply