C++ Declare Multiple Variables

Declare Many Variables

To declare more than one variable of the same type, use a comma-separated list:

Example

int x = 5, y = 6, z = 50;
cout << x + y + z;

Try it yourself!

Comments

Popular posts from this blog

ភាសាកម្មវិធី C++៖ សង្ខេប

Two ways to add code block in blogger template for composing posts

How to download and install Cambridge Advanced Learner's Dictionary_Fourth Edition-CALD4