new and delete operator in c 2b 2b

Solutions on MaxInterview for new and delete operator in c 2b 2b by the best coders in the world

showing results for - "new and delete operator in c 2b 2b"
Leticia
18 Aug 2019
1// Pointer initialized with NULL
2// Then request memory for the variable
3int *p = NULL; 
4p = new int;   
5
6            OR
7
8// Combine declaration of pointer 
9// and their assignment
10int *p = new int; 
11
similar questions
queries leading to this page
new and delete operator in c 2b 2b