本文共 689 字,大约阅读时间需要 2 分钟。
java中null是常量吗
C_NULL is a constant of Ptr{Nothing} type in Julia programming language, it represents the null pointer value, which is used for C Null Pointer while calling external code.
C_NULL是Julia编程语言中Ptr {Nothing}类型的常量,它表示空指针值,该值在调用外部代码时用于C空指针。
Syntax:
句法:
C_NULL
Example:
例:
In this example, we are taking a variable x and assigning it with C_NULL. We are printing the value and type of x using using and .
在此示例中,我们采用变量x并将其分配给C_NULL 。 我们正在使用和来打印x的值和类型。
# Julia example of C_NULLx = C_NULLprintln("x: ", x)println("typeof(x): ", typeof(x))
Output
输出量
x: Ptr{Nothing} @0x0000000000000000typeof(x): Ptr{Nothing}
Reference:
参考:
翻译自:
java中null是常量吗
转载地址:http://nitzd.baihongyu.com/