Just like any other variable. Example:
char *p = NULL;
government functions
Just as pointers can point to variables, pointers can also point to functions. Thus you can pass function pointers to functions. In so doing, you can alter the behaviour of the function by having it call dynamically call arbitrary functions rather than just preset functions.
A virtual function table is a table of pointers to functions.
function-these are self contained block of statements to solve a particular task whereas pointers are defined as the variable which stores the address of another variable
* * * * * * * * * * write the c++ program and show me brifily?
i cant write
That would include header files, data types, loops, functions, pointers, arrays
Function Pointers are basically used when we want to select a function which is to be used dynamically at run time.
bmbmbvjmgjmgj
To initialise again.
Pointers and functions are two entirely different things, similar to comparing cats to oranges. A pointer allows a program to dynamically call functions and/or dynamically load or store data. Pointers are commonly called "dangerous" in most programming circles, which is why newer languages do not explicitly allow programmers to access them (although they may use them internally). They are dangerous because a pointer used incorrectly can corrupt data or crash a system (or at least an application). While this is true, they are not dangerous by themselves, it is the novice programmer's misunderstanding of pointers that is dangerous. Functions are pieces of code that can be used over and over again in various parts of a program without duplicating code. For example, a function that calculates simple interest might be used in several parts of a banking application. This way, if a bug was found in how simple interest was calculated, it could be fixed just once instead of scanning the entire code base to make sure it was fixed everywhere. Functions reduce source code size, executable size, and memory usage. Pointers can dynamically call functions, while functions are pieces of code that can execute. Functions have no concept of pointers, and do not care from where they are called.
performing string operation using pointers