May your signals all trap
May your references be bounded
All memory aligned
Floats to ints rounded
Remember ...
Non-zero is true
++ adds one
Arrays start with zero
and, NULL is for none
For octal, use zero
0x means hex
= will set
== means test
use -> for a pointer
a dot if its not
? : is confusing
use them a lot
a.out is your program
there's no U in foobar
and, char (*(*x())[])() is
a function returning a pointer
to an array of pointers to
functions returning char
This entry was posted by Blogpur, on
Wednesday, August 02, 2006.
You can leave your response.
3:40 AM
Nice blog you have! I guess you have downloaded this template from blogger-templates? I also used this template for my earlier blog but it was unfortunately deleted when I created a new one. You can't download it anymore and I wonder if you still have the html-code? If you have, do you think you can e-mail it to me, please? I would appreciate it a lot! Keep up the good work!
Have a nice evening!
popadeliica@hotmail.com
6:28 PM
nice one... i should have heard that 3 years ago...might have helped me remember lots of C concepts
9:19 PM
Ever heard of mathematician who refused to learn C saying that it is inconsistent when he encountered the following statement?
X = X + 1;
Jokes apart.
++adds one, before or after?
Also few from my side (top of the mind)
1.void * means something
2.To have { in the same line or the next line, that's the question
3.You can write/read from anonymous unions
4.Ignore the evils macro at you own peril!
8:12 AM
Emelie, I will try to get the code for you.
Ankur, thanks for your comments!
Karthik
x++ does it after
++x does it before
1.void* x declares a pointer x of type void. It is a universal pointer that can have any pointer assigned to it. Generally used for allocating memory.
2.Style says { should be in the same line
3. not sure about this one
4. agreed!