Document 1
Document 1
_____________________________________________________________
____
#include <stdio.h>
#include <stdlib.h>
int sum = 0;
sum += array[i];
return sum;
int main() {
int r, c;
scanf("%d", &r);
scanf("%d", &c);
int** array = (int**)malloc(r * sizeof(int*));
scanf("%d", &array[i][j]);
int sum = 0;
free(array[i]);
}
free(array);
return 0;
}
Q number
16___________________________________________________________
_
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
char temp[50];
strcpy(temp, a);
strcpy(a, b);
strcpy(b, temp);
}
int main() {
int n;
scanf("%d", &n);
scanf("%s", names[i]);
bubbleSort(names, n);
printf("%s\n", names[i]);
}
for (int i = 0; i < n; i++) {
free(names[i]);
free(names);
return 0;