Home > OS >  Equivalent in C of an array with unidentified length
Equivalent in C of an array with unidentified length

Time:12-26

Let us consider this line of code in C# :

int[] int_array;

What is its equivalent in C ?

Is it : int* int_array ?

CodePudding user response:

The equivalent in c is

std::vector<int> int_array;
  • Related