Created
September 23, 2023 21:41
-
-
Save certik/9fc75ebf47019f75994ef7e251402218 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
program expr2 | |
implicit none | |
integer :: y, z | |
z = f(y) | |
print *, z, y | |
contains | |
integer function f(x) result(c) | |
integer, intent(out) :: x | |
x = 15 | |
c = 14 | |
end function | |
end program |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment