You are using the new UI (Beta).Return to the original UI

This page has been automatically translated by machine translation. Please note that translations may not be entirely accurate.

keisanHigh-precision calculations for everyday life and work

I don't understand how the array allocation statement and the function for retrieving the number of array elements work.

Author: hidekchi45Executions: 66

※ This library was created by a member. This site is not responsible for its content.

Manage Bookmarks
Verifying array allocation behavior. I do not understand how the array allocation instruction and the function for retrieving the number of array elements work.
I’ve included the source code below, so I’d appreciate an explanation of how it works.
flg1
numeric sieve[];
keilen1 = kei_length(sieve);
numeric sieve[0];
keilen2 = kei_length(sieve);
if (flg1 == 1)
{numeric sieve[88];}
keilen3 = kei_length(sieve);

println(keilen1);
println(keilen2);
println(keilen3);

No customer feedback for this calculation yet.