Monday 30 September 2013

Coding 6 : Symbolic constant, sizeof, suffix.

In this page, I will tell you about symbolic constant, size of, and suffix.
Symbolic constant is cannot be replace. Symbolic constant can be notice with #define or const . Here is example for symbolic constant.
Example 1:
const float Pi=3.14
Example 2:
#define Pi 3.14
For download , you can click here.

Now , I want to tell about size of. Size of notice how many memory in computer.
Example:
sizeof(int);
sizeof(3,14f);
For download, you can click here.

Now, I want to tell about suffix. Suffix is used for floating point constant.
Example:
float x;
x=3.14f;
For coding example, you can download here.

No comments:

Post a Comment