How Do You Allocate A Matrix Using A Single Pointer In Cr And C #353
How do you allocate a matrix using a single pointer in C?(r and c are the number of rows and columns respectively)
This multiple choice question (MCQ) is related to the book/course gs gs121 Data Structures and Algorithms. It can also be found in gs gs121 Array Types - Matrix - Quiz No.1.
How do you allocate a matrix using a single pointer in C?(r and c are the number of rows and columns respectively)
int *arr = malloc(r * c * sizeof(int));
int *arr = (int *)malloc(r * c * sizeof(int));
int *arr = (int *)malloc(r + c * sizeof(int));
int *arr = (int *)malloc(r * c * sizeof(arr));
Similar question(s) are as followings:
Online Quizzes of gs121 Data Structures and Algorithms
Binary Trees - Binary Search Tree - Quiz No.1
gs gs121 Data Structures and Algorithms
Online Quizzes
Binary Trees - Binary Search Tree - Quiz No.2
gs gs121 Data Structures and Algorithms
Online Quizzes
Binary Trees - Preorder Traversal - Quiz No.1
gs gs121 Data Structures and Algorithms
Online Quizzes