Horje
Heap pinter c++ Code Example
Heap pinter c++
void func()
{
    int *p = new int;            // automatic pointer to dynamic object
    int q;                       // automatic object
    int *r = &q;                 // automatic pointer to automatic object
    static int *s = p;           // static pointer to dynamic object
    static int *s = r;           // static pointer to automatic object (bad idea)
    thread_local int **t = &s;   // thread pointer to static object 
}




Cpp

Related
how to get a word from file c++ Code Example how to get a word from file c++ Code Example
c++ product of vector Code Example c++ product of vector Code Example
c++ initialize array 1 to n Code Example c++ initialize array 1 to n Code Example
for loop vector Code Example for loop vector Code Example
c++   check first character of string Code Example c++ check first character of string Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
10