Advanced Test in C: The 0x10 Best Questions for C Programmers

J

Jack Klein


Rubbish.

"Consider the data type

* char is 1 byte
* int is 2 byte
* long int 4 byte
* float is 4 byet (sic)
* double is 8 byte
* long double is 10 byte
* pointer is 2 byte "

Doesn't match any compiler I've used the better part of 10 years.

Just about every example on the first page that includes a main()
function defines it with implicit int, illegal under the C standard
for more than 8 years now.

In at least one case, the return type of a function is specified as
"Void". So apparently the code samples have never been compiled and
tested.

--
Jack Klein
Home: http://JK-Technology.Com
FAQs for
comp.lang.c http://c-faq.com/
comp.lang.c++ http://www.parashift.com/c++-faq-lite/
alt.comp.lang.learn.c-c++
http://www.club.cc.cmu.edu/~ajo/docs/FAQ-acllc.html
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,436
Messages
2,571,696
Members
48,796
Latest member
Greg L.
Top