4 ms·
AIUI, the explanation is that they wanted this idea of "declaration follows use". For simple things, this works kind of nicely: char *foo; Says that *foo
by endgame 16y ago
AIUI, the explanation is that they wanted this idea of "declaration follows use". For simple things, this works kind of nicely:
char *foo;
Says that *foo will have type `char`. This sounds good in theory, but famously breaks down when things get more complicated (arrays of function pointers, multiple declarations at once, &c.).
- mturmon 16y agoYes, see van der Linden's Deep C Secrets: http://books.google.com/books?id=4vm2xK3yn34C&printsec=frontcover&dq=deep+c+secrets&source=bl&ots=Hna8W92Id0&sig=G7re-qV-7tRMddDVnG_e-6f0GZ8&hl=en&ei=fcYmTMbeIcf7nAe_2ri8Bg&sa=X&oi=book_result&ct=result&resnum=5&ved=0CCgQ6AEwBA#v=onepage&q&f=false http://books.google.com/books?id=4vm2xK3yn34C&printsec=f...