Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- /* important #define doesnt alocate anything on the Memory, const also do that: const int i = 10; */
- #define num 10 // as int
- #define ch 'z' // as a char
- #define moo 10.2 // as float or double.
- int main()
- {
- printf("%c\n",ch);
- printf("%d\n",num);
- printf("%2.1f\n",moo);
- return 0;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement