Ask Question

Name:
Title:
Your Question:

Answer Question

Name:
Your Answer:
User Submitted Source Code!


Description:
  prova
Language: C/C++
Code:
#include <stdio.h>

int *scambia (int a, int b) {
int swap, *max;
swap=a;
a=b;
b=swap;     
if (a>b)
*max=a;
else
*max=b;
return max;
}


int main() {
int a=7, b=5;
printf ("Il più grande è: %d\n",scambia(a,b));
return 0;
}

          
          
Comments: