|
|
C Programming Tips (And stuff that goes around it) I came across these simple reasons in some site why we love C, and I concur completely:
If you think you have some problem related to C (On *nix environments only, you do not do programming on Windows!!), mail me at indiangeek (AT) gmail.com, and I'll see if I can solve the problem. The ISO C standard is available for sell as a PDF at the site of ANSI. No, it's not free. But you do not need it mostly if you do not want to get into those geeky conversations about what 5["abcde"] means.
The best book on C is "The C Programming Language" by Kernighan and Ritchie.
However, it might not be suitable for the beginners. There are some
online tutorials
which can get you started.
C is an elegant language. But, it is quite easy to mess it up, structurally and
functionally. I'll try to cover some of the common areas people make mistakes
on. I'm assuming the reader has at least some programming knowledge, and is at least slightly familier with C. Process of a C program becoming a runnable one from a text fileGCC Cheat SheetGmake GotchasToday I faced a strange Makefile issue with gmake. Assume the makefile as:According to gmake manual: Similar commands work for all the targets. The commands do not need toSo, I expected my makefile to generate: echo "a.x .x" a.x .x echo "a.z .z" a.z .z But instead it generates echo "a.x .x" a.x .x and ignores the a.z rule. The problem happens to be that gmake does not really extend an implicit rule to multiple rules, so, after executing it once, it decides to not execute it again. The solution to this is to use static pattern based rules. Using that, the makefile will look like the following that will solve the problem: |
Weather at My part of the world
|