Mixed Arrays in C++ and C#

前端 未结 4 394
心在旅途
心在旅途 2021-01-03 03:21

Is it possible to create a Mixed Array in both C++ and C#

I mean an array that contains both chars and ints?

ex:

Array [][] = {{\'a\',1},{\'b         


        
4条回答
  •  轮回少年
    2021-01-03 04:12

    A classic array (the one with the brackets) can only have one type, which is part of its declaration (like int[] nums). There is no Array[].

提交回复
热议问题