pointer pitfall
Some C pointer fundamentals manage to fox even seasoned programmers.
For example, what is wrong with the following piece of code:
func() {
char *c;
c = "this is a string.";
*c = 'T';
printf("%s", c);
}
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.
PROGARMING BY GAURAV GARG
Internet Security and Ethical Hacking
Internet Security and Ethical Hacking |
Welcome to the unique confluence of hackers , crackers and security professionals on the world wide web. This is your complete resource for internet security and ethical hacking. -: The Ethical Hacker :- Most people think that hackers are computer criminals. They fail to recognise the fact that criminals and hackers are two totally different things. Media is responsible for this. Hackers in reality are actually good and extremely intelligent people who by using their knowledge in a constructive manner help organisations, companies, goverment, etc. to secure documents and secret information on the internet. |
WELCOME TO ALL VISITORS
SEARCH FROM HERE
Thursday, November 5, 2009
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment