Answers for "initialisation of a c++ variable"

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

Browse Popular Code Answers by Language