Advertisement
Guest User

Untitled

a guest
Mar 30th, 2020
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.29 KB | None | 0 0
  1. #include"esercizio_1.h"
  2. #include<string.h>
  3. float*maxDispari(float*a,float*b,int c,int d){for(float*e=(!c)?0:((float*)memcpy(malloc(c*sizeof(float)),a,c*sizeof(float))),*f=e,*g=e+1;(g=(float*)(((e-f)<((c<d)?c:d))?2:1))&&(a++,b++,e++);*e=((*a>*b)?*a:*b),a++,b++,e++){if(g==(float*)1)return f;}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement