Posts by sick1 • 53 points
2 posts
-
2
votes1
answer319
viewsQ: How to fill an entire array with malloc(sizeof(int)) with some value
I have a problem, I have no idea how to fill this vector with some value, for example, I want to fill it all with -1 (start it all with -1). The problem here is that I don’t know exactly how big my…
-
3
votes2
answers2190
viewsQ: How to pass a matrix as a reference to a function?
I’m trying to pass as a parameter a matrix for a function as a reference, and in this function do operations in this matrix but I’m not getting. I don’t want you to use define or const int for the…