|
|
C Traps - C
|
Views : 140
|
|
Tagged in : C
|
|
|
Report This Scrap as Inappropriate We request you to choose the appropriate categroy and subcategory that suits your
objectionable concern about the scrap, So that our team can review and find out whether it violates our Guidelines or the
scrap is not suitable for all viewers.
|
C Traps
Cerebral C programmers should take note of the following:
* Curly brackets are required on ifs and whiles.
* You should use elsif rather than else if
* break and continue become last and next, respectively.
* There's no switch statement.
* Variables begin with `$', `@' or `%' in perl.
* printf does not implement `*'.
* Comments begin with `#', not `/*'.
* You can't take the address of anything.
* `ARGV' must be capitalized.
* The "system" calls link, unlink, rename, etc. return nonzero for success, not zero (0).
* Signal handlers deal with signal names, not numbers. |
|
By Geethalakshmi, On - 2010-09-17 |
|
|
|