Is there any way to declare 2 dim array that one column data type is int and the other is float in one line without using structure?
You can't mix fundamental types with each other. Maybe some void pointer could be of use, though that would require some ugly casting.
Why do you need such array? I bet there is better solution for your problem.
edit: you could always create float array and cast to int some column values, though that would still need casting everytime
Last edited on
then The only way is using structure definition?
Last edited on