Answers for "multi initialisation if statement c++"

C++
0

multi initialisation if statement c++

// Only variables of the same type can be initialised in for-loop declaration
for(int x = 10, y = 20, z = 50; x < 30; ++x, ++y, ++z)
{
  // Do something
}
Posted by: Guest on April-29-2021

Browse Popular Code Answers by Language