In C I would use an array of pointers.
For instance:
int *jagged[5];
jagged[0] = malloc(sizeof(int) * 10);
jagged[1] = malloc(sizeof(int) * 3);
etc etc.
More Related Contents:
- C++ 2 dimensional array with variable size rows
- Mixing two arrays by alternating elements two by two
- C++11 does not deduce type when std::function or lambda functions are involved
- How to make cin take only numbers
- Reason to Pass a Pointer by Reference in C++?
- unresolved external symbol __imp__fprintf and __imp____iob_func, SDL2
- View array in Visual Studio debugger? [duplicate]
- Open source PDF library for C/C++ application? [closed]
- Checking if this is null
- Checking for NULL pointer in C/C++ [closed]
- What does the standard say about how calling clear on a vector changes the capacity?
- Passing a variable as a template argument
- How does the standard library implement std::swap?
- How are circular #includes resolved?
- constexpr initializing static member using static function
- What does a backslash in C++ mean?
- Using CreateWindowEx to Make a Message-Only Window
- Why is copy constructor called instead of conversion constructor?
- Will a “variableName;” C++ statement be a no-op at all times?
- What is the difference between C-like casting and functional casting? [duplicate]
- Preincrement faster than postincrement in C++ – true? If yes, why is it? [duplicate]
- How to update GCC in MinGW on Windows?
- Why is the copy constructor called when we pass an object as an argument by value to a method?
- Why can’t we declare a namespace within a class?
- std::map thread-safety
- C++ regex for overlapping matches
- error for hash function of pair of ints
- “APIENTRY _tWinMain” and “WINAPI WinMain” difference
- Qt equivalent of PathAppend?
- Why we need to return reference to istream/ostream while overloading >> and