
C++
8
Вклад в тег
cout << (z < 0 ? "Error" : "Ok") << endl;
((z<0)?(std::cout << "Error"):(std::cout << z)) << std::endl;
const [type]
и [type] const
вообще нет никакой разницы - оба раза const применяется к типуconst [type] const
- это двойное применение const к типу, что вызовет ошибку компиляции.[type] * const
[type] const * const
const [type] * const