$ gcc -o prog prog.c -lm
é apresentado o seguinte aviso:
warning: incompatible implicit declaration of built-in function ‘round’
porém se eu usar
$ gcc -o prog prog.c -lm -std=c99
não há aviso algum.
Eu estou cometendo algum erro em relação ao uso da função round() ? faltou algo no código?
#include <stdio.h>
#include <math.h>
int main(void) {
printf("Round() = %f \n", round(10.2 / 1.3));
}
ObrigadoWdr