dimanche 1 août 2021

Initialization in C++

What is the difference between direct initialization and uniform initialization in C++?

What is the difference between writing

int a{5}; // Uniform

and

int a(5); // Direct

Aucun commentaire:

Enregistrer un commentaire