+ 6

[Solved] What is wrong with this code? T *p = new T[10]; delete p;

19th Jul 2020, 1:59 PM
Mantafounis Panagiotis
Mantafounis Panagiotis - avatar
6 Réponses
+ 2
Made a mistake. Sorry
19th Jul 2020, 2:05 PM
Saphal Poudyal
Saphal Poudyal - avatar
+ 2
The code is wrong cause the is no return type like I mean instead of putting T try putting Int *p = new int[10] ; If I am wrong correct if I am write I am write 😅😅hope it helps 😁
19th Jul 2020, 7:14 PM
Pjc
Pjc - avatar
+ 1
~ swim ~ thanks a lot!
19th Jul 2020, 2:06 PM
Mantafounis Panagiotis
Mantafounis Panagiotis - avatar
0
Ćheyat no problem
19th Jul 2020, 2:06 PM
Mantafounis Panagiotis
Mantafounis Panagiotis - avatar
19th Jul 2020, 5:08 PM
Vasile Eftodii
Vasile Eftodii - avatar