initialisation of a c 2b 2b variable

Solutions on MaxInterview for initialisation of a c 2b 2b variable by the best coders in the world

showing results for - "initialisation of a c 2b 2b variable"
Jana
04 Jan 2018
1//<Data type> <variable name>;
2//static initialisation:
3int acceleration=4;
4//alternative:
5int acceleration;
6acceleration=4;
7//dynamic \initialisation:
8int acceleration;
9std::cout<<"Enter the value of the acceleration\n";
10std::cin>>acceleration;
11