SyntaxFix
Write A Post
Hire A Developer
Questions
If only to 0 then you can use memset:
memset
int* a = new int[6]; memset(a, 0, 6*sizeof(int));