| Message |
Post subject: Pointer Tips Posted: Fri Jul 24, 2009 7:16 am |
|
|
some tips for the beginners.,
1) Never ever forget to initialize the pointer. This may be simple and easy known stuff but here I would like to add it as an embedded system developer that this was the main cause of many bugs. 2) Also never change the pointer variable itself unless & until you need to change the pointer. 3) Also monitor that the pointers are not overlapping if not pointing to same memory ...
Read more : Pointer Tips | Views : 35 | Replies : 0
|
|
| Top |
 |
Post subject: Programming Tips Posted: Fri Jul 24, 2009 7:15 am |
|
|
Here is the simple and most useful tips..,
1) Check for the function prototype for the library function if you don't remember the actual argument type for the library function. e.g., scanf() function.., it expects address of the argument so it should be proveded address of the variable to be filled not the variable itself.
2) Take care that the loop count variable never overflows.., and if so take the overflow into count. e.g., Never ...
Read more : Programming Tips | Views : 21 | Replies : 0
|
|
| Top |
 |
Post subject: What is C++? Posted: Fri Jul 24, 2009 7:13 am |
|
|
Released in 1985, C++ is an object-oriented programming language created by Bjarne Stroustrup. C++ maintains almost all aspects of the C language, while simplifying memory management and adding several features - including a new datatype known as a class - to allow object-oriented programming. C++ maintains the features of C which allowed for low-level memory access but also gives the programmer new tools to simplify memory management
Read more : What is C++? | Views : 26 | Replies : 0
|
|
| Top |
 |
Post subject: What is C++ used for? Posted: Fri Jul 24, 2009 7:12 am |
|
|
C++ is a powerful general-purpose programming language. It can be used to create small programs or large applications . It can be used to make CGI scripts or console-only DOS programs. C++ allows you to create programs to do almost anything you need to do. The creator of C++, Bjarne Stroustrup, has put together a partial list of applications written in C++.
It is also good for developing computer games.
Read more : What is C++ used for? | Views : 24 | Replies : 0
|
|
| Top |
 |
|
Last 10 active topics
|