Jump to content
Fórum Script Brasil
  • 0

(Resolvido) duvida sobre erro em C


Eproctux

Question

galera da uma olhada ae ele da um [Warning] passing arg 2 of `modf' from incompatible pointer type ,mas roda normal oque seria esse erro e como arrumar?

void Exercicio10()
{
float nx,f;
int n;
printf("Digite um numero :");
scanf("%f",&nx);
nx =sqrt(nx);
f=modf(nx,&n);
if(f>0.5)
n=nx+1;
else
n=nx;

printf("O numero que se aproxima da raiz quadrada \x82 : %d",n);
}

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Forum Statistics

    • Total Topics
      152.2k
    • Total Posts
      652k
×
×
  • Create New...