mercredi 1 avril 2015

Array Equivalent of Bare-String

I can do this without issue:



const char* foo = "This is a bare-string";


What I want is to be able to do the same thing with an array:



const int* bar = {1, 2, 3};


Obviously that code doesn't compile, but is there some kind of array equivalent to the bare-string?


Aucun commentaire:

Enregistrer un commentaire