mardi 16 octobre 2018

A special and strange usage of () in C++ 11?

I found a usage of () in this code

    int a, b, c;
    int x = (a= 2,b=5, a+b,++b );
    cout<<x;

I can't find any exmaple in Microsoft Docs or other place. Have anyone tell me What is the role of ()?

Aucun commentaire:

Enregistrer un commentaire