location tag

22 questions


1 answers
89 views
0
Initialize to 2D array element 0.0C language

When you declare a two-dimensional array dynamic assignment and enter the number of rows and columns, you want all the elements in the array to be initialized to 0.0, but I'm not sure what's wrong. vo...


1 answers
144 views
0
When you dynamically assign a C language array...

#include <stdio.h>int main(){ int * arr1 = (int *)malloc(sizeof(int) * 6); int * arr2 = (int *)malloc(sizeof(int) * 6); int * arr3 = (int *)malloc(sizeof(int) * 6); arr1[3][2] = { {3, 4}, {5, ...

« - 3 -

© 2025 OneMinuteCode. All rights reserved.