filmov
tv
Introduction to Pointers in C++ | C++ programming tutorials for beginners

Показать описание
Today session is very informative where we will discuss pointers and its uses in C++ using DevC++.
Source code is available at:
Pointers are important concept for understanding of dynamic data structures such as link list and graphs. A memory location that is used to hold the address of an other memory location is known as pointer. In this video lecture of C++ we will discuss the following types of pointers.
1. void pointer
2. Null pointer
3. Wild pointer
Void pointer is also called generic pointer. It can hold address of any data type. The size of the void pointer depends on the compiler being used by the programmer. Pointers plays an important role while processing large size data structures such as linked list, trees and graphs. We can also use pointers for processing array elements. In C++ name of the array is static pointer to its memory locations. We can also used pointers as the formal arguments of functions. When we use formal arguments of function as pointers then any change inside the function body effect the actual parameters. The function that use pointers in its header it only accept address of the variables while function call.
It is necessary to use pointers carefully in our programs so that we may may prevent from any kind of data loss or memory violation. If pointers made any memory violation then Operating system may stop execution of program forcefully.
Source code is available at:
Pointers are important concept for understanding of dynamic data structures such as link list and graphs. A memory location that is used to hold the address of an other memory location is known as pointer. In this video lecture of C++ we will discuss the following types of pointers.
1. void pointer
2. Null pointer
3. Wild pointer
Void pointer is also called generic pointer. It can hold address of any data type. The size of the void pointer depends on the compiler being used by the programmer. Pointers plays an important role while processing large size data structures such as linked list, trees and graphs. We can also use pointers for processing array elements. In C++ name of the array is static pointer to its memory locations. We can also used pointers as the formal arguments of functions. When we use formal arguments of function as pointers then any change inside the function body effect the actual parameters. The function that use pointers in its header it only accept address of the variables while function call.
It is necessary to use pointers carefully in our programs so that we may may prevent from any kind of data loss or memory violation. If pointers made any memory violation then Operating system may stop execution of program forcefully.