Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #include<stdio.h>
- #include <stdlib.h>
- double* maior(double* P, int size){
- double* aux;
- for(size=0;size<3;size++){
- if(P<P+size){
- aux=P+size;
- }
- }
- return (P);
- }
- int main(){
- double VET[3];
- int tam;
- double *PM;
- for(tam=0;tam<3;tam++){
- scanf("%d",&VET[tam]);
- }
- tam=0;
- PM=maior(VET,tam);
- printf("o maior numero eh %d",*PM);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement