0

I try to run a simple program that print a double value in infinite loop. When monitoring I see that memory increase from few Mb to 1 Gb!? I run it under CYGWIN_NT-10.0-19045 DESKTOP-U1587BG 3.4.7-1.x86_64 2023-06-16 14:04 UTC x86_64 Cygwin (last version) gcc (GCC) 11.4.0

#include <stdio.h>

int main()
{
    float a=1.283;
    while(1)
    printf( "%f", a );
}
natan
  • 11
  • 3

0 Answers0