FLOATING POINT NUMBERS AND REPRESENTATION- A new recipie which is completely based on floating point numbers or float data type according to IEEE standard . This blog contains complete hidden and complex details of float data type like how they represent,what happen when int convert into floats etc.. SO LET'S START- Generally, no matter either you are from programming background or not . I think students hear the "float" terms many times. float is just a common representation of number in decimal form ex-12.34. Today they are the common way to represent the real numbers on computers. WHY WE REQUIRE FLOATING POINT NUMBERS- Basically, we can easily represent any integer using int data type like 45, but if we want to represent the 1000th part of 45, then how we can represent it with accuracy and precision. and mainly they are use in computers widely, to represent the real numbers. due to that float concept come which is introduced by IEEE 754 and the new data ty...
CONSTANTS AWAKENING- This heading looks like very cool recipie .yes i will guarranteed you that this blog present only small topic which you know very well but something you didn't know really interesting and important in terms of quality of code. SO LET'S START-- You know very well that what is constant. constants are those values which are fixed and can't change their values during whole program.There are many types of constants present in programming like integer constant, string constant, enumeration constants etc. An integer constant generally look simply like 1234. A long constant is written with terminal 1(ell) or L ex-1234567L. Unsigned int are written with terminal u and unsigned long with terminal ul. ex--25u & 2345ul. Similarly, floating point constants written with terminal f or F ex--2.5f and long double constants with terminal L. The value of an integer can be specified in octal or hexadecimal generally, instead of decimal. A leading 0(ze...