Skip to content

Commit

Permalink
Update ch08-03-pointertips.md
Browse files Browse the repository at this point in the history
  • Loading branch information
Euler-37 authored Mar 31, 2024
1 parent 9936b0d commit 7c50f3c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ch08-03-pointertips.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pa(1:size(a))=>a !此时需要设置指针的宽度,且右边只能是一维
``` fortran
integer::i
pa=[(i,i=1,16)]
write(*,*)pa(1::size(a,dim=1)) !获取对角项
write(*,*)pa(1::size(a,dim=1)+1) !获取对角项
```

如果在子程序或者函数中,我们则需要为数组设置`contiguous`关键字
Expand Down

0 comments on commit 7c50f3c

Please sign in to comment.