I can`t use calloc ()
Type: Posts; User: kavka3
I can`t use calloc ()
I have not so understood a question
If I learn as correctly it to make, it will solve to me all problems
The function receives pointer to the structure that contains a sparse matrix and releases all the engaged memory by the structure.
How to realize this?
#include <stdlib.h>
#include...
I think it is necessary to make so but is not assured of it
Matrix newSparseMatrix(){
A = (*Cell)malloc(sizeof(Cell));
Matrix A->row = NULL;
Matrix A->col = NULL;
Matrix A->row =...
I need build function that creates a structure for sparse empty matrix (that in entirety nils ) and returns pointer to the created structure
I need to use the functions malloc in order to create a...
brewbuck how i can do it without pointers
rpartition(array + 1, num - 1, sum1, sum2 + array[0]);
root4 !!!
#include <stdio.h>
int foo(int a[],int size,int i,int j) {
// pre-condition: j>i
if(j>=size) return 1;
int r1=foo(a,size,j,j+1)+(a[j]>a[i]);
int r2=foo(a,size,i,j+1);
int min_num(int arr[],int index, int minIndex, int size){
if (index==size)
return minIndex;
else
if (arr[index]<arr[minIndex])
minIndex=index;
return...
int min_num(int arr[],int index, int minIndex, int size){
if (index==size)
return minIndex;
else
if (arr[index]<arr[minIndex])
minIndex=index;
...