WPM
100
CPM
100
Errors
0
Time
15Min
Accuracy
100%
Start C++ Programs code typing Practice. C++ Constant Qualifier, Array typing Practice, cpp two dimensional array and operators typing practice, for loop in cpp typing practice.Click on the area below to start typing.
S.No. | Paragraph : Practice repeatedly whatever you would like most for full fifteen minutes | Lessions | click to Practice |
---|---|---|---|
1 | const int i = get_size(); // ok: initialized at run time
const int j = 42; // ok: initialized at compile time
const int k; // error: k is uninitialized const
int i = 42;
const int ci = i; // ok: the value in i is copied into ci
#include 1.1 |
Constant qualifier in C++ typing practice | |
2 | datatype array-Name [ array-Size ];
int age[5]; //example
int age[5] = {19, 18, 21, 20, 17};
age[3] = 20; //assignment of value to fourth indexed array
#include 1.2 |
array in c++ practice | |
3 | type array-Name [ x ][ y ]; int a[2][3] = { {0, 2, 1} , /* row at index 0 */ {4, 3, 7} , /* row at index 1 */ }; int main() { int a[3][2] = { {0, 2}, {1, 4}, {3, 7} }; for (int i=0; i<3; i++) for (int j=0; j<2; j++) { cout << "a[" < | 1.3 | Cpp 2D array typing practice |
4 | #include | 1.4 | cpp operators typing practice |
5 | #include | 1.5 | for loop in cpp typing practice |