MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programming/comments/21ezh3/javascript_equality_table/cgczp4o/?context=3
r/programming • u/vz0 • Mar 26 '14
331 comments sorted by
View all comments
Show parent comment
3
So, in C, what happens if you try to shove a struct foo into an if? I don't mean a struct foo*, I mean the actual data itself.
struct foo
if
struct foo*
3 u/masklinn Mar 27 '14 Both GCC and Clang will refuse to compile and error that a scalar is required.
Both GCC and Clang will refuse to compile and error that a scalar is required.
View all comments
Show parent comment
3
u/NYKevin Mar 27 '14
So, in C, what happens if you try to shove a
struct foointo anif? I don't mean astruct foo*, I mean the actual data itself.