Some C pointer fundamentals manage to fox even seasoned programmers.
For example, what is wrong with the following piece of code:
c = "this is a string.";
*c = 'T';
The code tries to capitalize the first letter of the string. It looks correct at first glance, but is not. It might even compile without any error, but will throw out an error when run.
Friday, October 24, 2008