Can someone explain this ?

Revision en1, by CPharderthanDarkSouls, 2020-02-27 08:11:17

In a program if i use /* int *a = new int [n] / (and using delete at the end), the compiler throws sigbart error but if i use / int a[n] */ it compiles successfully ,Why ?

program : https://ideone.com/e.js/lZfJuL

History

 
 
 
 
Revisions
 
 
  Rev. Lang. By When Δ Comment
en1 English CPharderthanDarkSouls 2020-02-27 08:11:17 250 Initial revision (published)