main.c

mail@pastecode.io avatar
unknown
c_cpp
2 months ago
335 B
2
Indexable
Never
#include <stdio.h>

double* findMinPtr (const double* num1, double* const num2){
    if (*num1 > *num2){
        return num2;
    }
    if (*num1 <= *num2){
        return num1;
    }
}

int main()
{
    const double x = 5;
    const double y = 6;

    double* result = findMinPtr(&x ,&y);
    printf ("%p\n", result);

    return 0;
}
Leave a Comment