// SparseMatrix.cpp
#include "stdafx.h"
#include <stdlib.h>
#include <stdio.h>
typedef int Elem;
typedef struct cell Cell;
typedef Cell * Matrix;
Type: Posts; User: uber
// SparseMatrix.cpp
#include "stdafx.h"
#include <stdlib.h>
#include <stdio.h>
typedef int Elem;
typedef struct cell Cell;
typedef Cell * Matrix;
#include <stdio.h>
typedef int mat[10][10];
void input(mat matr)
{
int x,y;
scanf("%d %d",&x,&y);
while(x!=-1&&y!=-1)
{
matr[x][y]==1;
Can someone give me a simple example of a function which returns more than one value?
I tried searching in google, but I failed finding something relevant.
Thanks in advance.