This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

array for realview compiler

I want to use two dimensional array on realview compiler with type A[n][10] where n is an variable of type unsigned char. but it show an error.

Parents
  • "at the time of compilation , i do not know the size of multidimensional array that's why i want to know about dynamic memory allocation for two dimensional array in realview compiler"

    You were asked to explain what you are actually trying to achieve.
    Using a 2D array of unknown size may or may not be a good way to do what you need - but nobody can comment on that without knowing what, exactly, you are actually trying to do!

Reply
  • "at the time of compilation , i do not know the size of multidimensional array that's why i want to know about dynamic memory allocation for two dimensional array in realview compiler"

    You were asked to explain what you are actually trying to achieve.
    Using a 2D array of unknown size may or may not be a good way to do what you need - but nobody can comment on that without knowing what, exactly, you are actually trying to do!

Children
No data