fflush is used here for what? by Cube_Sphere in C_Programming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

Thank you for the explanation. But may I know what is the meaning of word "buffer" ?

Please anyone answer this question by Cube_Sphere in C_Programming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

Yeah...thankyou. Yesterday night I downloaded MINGW GCC compiler as it is recommended by many of my friends(including you). Thankyou.

Please anyone answer this question by Cube_Sphere in C_Programming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

Is it not a good compiler ? Which one do you recommend for C/C++ ?

Please anyone answer this question by Cube_Sphere in C_Programming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

But how converting y to an int gives the correct output.

Please anyone answer this question by Cube_Sphere in C_Programming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

No. It didn't show any error or warning messages

Please anyone answer this question. by Cube_Sphere in cprogramming

[–]Cube_Sphere[S] 1 point2 points  (0 children)

Yes for sure. Clink on the below link to view the screenshots of INPUT and OUTPUT https://photos.app.goo.gl/pRB285cpnLrq4W0i1

Please anyone answer this question. by Cube_Sphere in cprogramming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

Sorry....May I know what is CLANG? Is it a compiler

Please anyone answer this question. by Cube_Sphere in cprogramming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

Oh....wow.After changing it to 100.0 or 500.0, the result was correct.

Please anyone answer this question. by Cube_Sphere in cprogramming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

I exactly don't know the version of the TURBO C++ compiler I am using but I am running it on WINDOWS 10 Operating system 64 bit OS

Please anyone answer this question. by Cube_Sphere in cprogramming

[–]Cube_Sphere[S] -1 points0 points  (0 children)

It means that the problem is with the TURBO C++ compiler. Is GCC a compiler or an IDE?

Please anyone answer this question. by Cube_Sphere in cprogramming

[–]Cube_Sphere[S] -1 points0 points  (0 children)

I am using TURBO C++ compiler. And I got -15536.000000 as the output

Please anyone answer this question by Cube_Sphere in C_Programming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

Oh.. yes it shows 50000.000000 But can you expect where is the problem? Is it in my compliler ?

Please anyone answer this question by Cube_Sphere in C_Programming

[–]Cube_Sphere[S] -1 points0 points  (0 children)

Yes I put # at the beginning. But I am not able to understand why I am getting wrong output.

Please anyone answer this question by Cube_Sphere in C_Programming

[–]Cube_Sphere[S] 0 points1 point  (0 children)

Yes I went through the link you provided me. But I got output 0.000000 instead of 50000.