1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2025-05-31 08:31:41 +05:30

static-vs-dynamic-mem-alloc.c: fix output format

This commit is contained in:
2025-03-02 13:11:02 +03:00
parent ad9ee13fb6
commit 91801fdc5a

View File

@@ -75,7 +75,7 @@ int main(void) {
long double value1 = measure(static_memory_allocation, &c);
printf("Dynamic memory allocation");
long double value2 = measure(dynamic_memory_allocation, &c);
printf("\nStatic memory allocation is ~%.0Lf nanoseconds faster",
printf("\nStatic memory allocation is ~%.0Lf nanoseconds faster\n",
value2 - value1);
return EXIT_SUCCESS;