Files
Victor Eijkhout b13edff125 initial upload
2022-11-13 14:03:01 -06:00

26 lines
568 B
Fortran

!****************************************************************
!***
!*** This file belongs with the course
!*** Introduction to Scientific Programming in C++/Fortran2003
!*** copyright 2017-2021 Victor Eijkhout eijkhout@tacc.utexas.edu
!***
!*** allocptr.F90 : allocate the pointer object
!***
!****************************************************************
Program PointAtReal
implicit none
!!codesnippet fptralloc
Real,pointer :: x_ptr,y_ptr
allocate(x_ptr)
y_ptr => x_ptr
x_ptr = 6
print *,y_ptr
!!codesnippet end
end Program PointAtReal