9.201. NULL

9.201 NULL — Function that returns an disassociated pointer

Description:
Returns a disassociated pointer.

If MOLD is present, a disassociated pointer of the same type is returned, otherwise the type is determined by context.

In Fortran 95, MOLD is optional. Please note that Fortran 2003 includes cases where it is required.

Standard:
Fortran 95 and later
Class:
Transformational function
Syntax:
PTR => NULL([MOLD])
Arguments:
MOLD (Optional) shall be a pointer of any association status and of any type.
Return value:
A disassociated pointer.
Example:
REAL, POINTER, DIMENSION(:) :: VEC => NULL ()
See also:
ASSOCIATED

© Free Software Foundation
Licensed under the GNU Free Documentation License, Version 1.3.
https://gcc.gnu.org/onlinedocs/gcc-6.3.0/gfortran/NULL.html

在线笔记
App下载
App下载

扫描二维码

下载编程狮App

公众号
微信公众号

编程狮公众号

意见反馈
返回顶部