How to dynamically allocate a 2D array in C?
I know how to allocate 2D array but dynamically allocation is not clear. Would be thankful if someone will answer.
- 4569 दृश्य
- 1 उत्तर
1 उत्तर
-
-
- 02 अप्रैल
- 0 टिप्पणी
-
- What are storage classes in C language?
- What is structured programming?
- Is C++ better than C sharp? Explain your answer
- What is C used for? Explain your answer
- Программы и игры для Андроид телефона
- Trade crypto anytime
- What is the difference between C and C++?
- Singapore’s GPA Grading System Explained: Key Facts and Tips
- Психологическая помощь при похудении
- Who invented C C++ and Java? Explain your answer
मॉक परीक्षण अभ्यास के लिए
c programming
Following are different ways to create a 2D array on heap (or dynamically allocate a 2D array).br /In the following examples, we have considered ‘r‘ as number of rows, ‘c‘ as number of columns and we created a 2D array with r = 3, c = 4 and following valuesbr /br / 1 2 3 4br / 5 6 7 8br / 9 10 11 12