Is there a difference between
integer, intent(in) :: n integer, dimension(:), allocatable :: a allocate(a(n))
and
integer, intent(in) :: n integer, dimension(n) :: a
In what situation will we use the first version? Perhaps I misunderstood the allocatable array, is the second version even a allocated array?
The second case really does not have aallocatable. This, however, is an automatic object.
a
, . , a ( , ) , allocate n, . , (, ) . .
allocate
n
( ) .
- . .
- , . , , , .
Source: https://habr.com/ru/post/1545447/More articles:In Java, should I use a different scanner instance for different input types? - javaXMPP: AngularJs + Strophe.js - javascriptcouchdb map/уменьшить количество фильтров по дате - dateJQuery UI Dialog - key entry should equal click - jqueryunit test, which uses the identifier in the mvc regular controller (and not the web-api controller) - c #How to launch the "Connect to device" dialog when using a custom cast button? - androidiOS 7 Removable View - iosGoogle Cloud Storage Client Library uses unknown dependencies - javaHibernate Exception - Unknown name value - javaShow context menu of copy / paste to text using Android code - androidAll Articles