Какое значение будет присвоено переменной k в результате выполнения оператора select type в следующем фрагменте программы ?type point integer x, yend type pointtype, extends(point) :: point_ex integer zend type point_extype, extends(point_ex) :: point_phys real vx real tmend type point_phystype, extends(point_phys) :: point_mech character(32) nameend type point_mechclass (point_ex), pointer :: polyclass (point), target, allocatable :: ptclass (point_ex), target, allocatable :: pt_exclass (point_phys), target, allocatable :: pt_phclass (point_mech), target, allocatable :: pt_mhinteger kallocate (pt, source=point(1,2))allocate (pt_ex, source=point_ex(3,4,5))allocate (pt_ph, source=point_phys(6,7,8,0.0,9.0))allocate (pt_mh, source=point_mech(9,10,11,0.0,0.0,"ABC"))poly=>pt_mh select type (poly) class is (point_ex); k=poly.x class is (point_phys); k=poly.z class default; k=0 end select ...
(Ответ необходимо ввести в поле ввода.)
Варианты ответа