We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
- Prepare
- C
- Arrays and Strings
- Dynamic Array in C
- Discussions
Dynamic Array in C
Dynamic Array in C
Sort by
recency
|
394 Discussions
|
Please Login in order to post a comment
Here is amazing solution - hackerank dynamic array in c solution
use this for dynamic memory allocation:
include
include
/* * This stores the total number of books in each shelf. / int total_number_of_books;
/* * This stores the total number of pages in each book of each shelf. * The rows represent the shelves and the columns represent the books. / int* total_number_of_pages;
int main() { int total_number_of_shelves; scanf("%d", &total_number_of_shelves);
}
include
//Someone help me please
include
/* * This stores the total number of books in each shelf. / int total_number_of_books;
/* * This stores the total number of pages in each book of each shelf. * The rows represent the shelves and the columns represent the books. / int* total_number_of_pages;
int main() {
}
int main() { int total_number_of_shelves; scanf("%d", &total_number_of_shelves);
Erase all the white background text and paste this.