rank 28 29 in c 2b 2b

Solutions on MaxInterview for rank 28 29 in c 2b 2b by the best coders in the world

showing results for - "rank 28 29 in c 2b 2b"
Luisa
22 Feb 2020
1// array rank example
2#include <iostream>
3#include <type_traits>
4
5int main() {
6  std::cout << "rank:" << std::endl;
7  std::cout << "int: " << std::rank<int>::value << std::endl;
8  std::cout << "int[]: " << std::rank<int[]>::value << std::endl;
9  std::cout << "int[][10]: " << std::rank<int[][10]>::value << std::endl;
10  std::cout << "int[10][10]: " << std::rank<int[10][10]>::value << std::endl;
11  return 0;
12}