sizeof(3.14) GIVES 8 AS THE OUTPUT. Where sizeof(3.0f) gives 4 as output. Is it because default datatype alloted to 3.14 is double and attaching f changes it to float??

Recommended Answers

All 3 Replies

I believe that you need to put 0x in front of a number if it needs to be hexadecimal (or was it $??)


Greetz, Eddy

Um... what's your point?

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.