Answers for "c++ variable declaration and initialization"

C++
0

initialisation of a c++ variable

//<Data type> <variable name>;
//static initialisation:
int acceleration=4;
//alternative:
int acceleration;
acceleration=4;
//dynamic \initialisation:
int acceleration;
std::cout<<"Enter the value of the acceleration\n";
std::cin>>acceleration;
Posted by: Guest on May-04-2021

Code answers related to "c++ variable declaration and initialization"

Browse Popular Code Answers by Language