#include <stdio.h>
void sumer(int matrix[2]) {
matrix[0] += 1;
printf("%d", matrix[0]);
}
int main() {
int a[2] = {0,0};
sumer(a);
return 0;
}
You should rewrite your code like this.
4
solved My function in C is not printing the value