Home »
Julia
Sys.KERNEL Constant in Julia
Julia | Sys.KERNEL Constant: In this tutorial, we are going to learn about the Sys.KERNEL constant with examples in Julia programming language.
Submitted by IncludeHelp, on April 02, 2020
Julia | Sys.KERNEL Constant
Sys.KERNEL is a constant of the Symbol type in Julia programming language, it is used to get the name of the operating system.
Syntax:
Sys.KERNEL
Example:
In this example, we are taking a variable x and assigning it with Sys.KERNEL. We are printing the value and type of x using using println() function and typeof() function.
# Julia example of Sys.KERNEL
x = Sys.KERNEL
println("x: ", x)
println("typeof(x): ", typeof(x))
Output
x: Linux
typeof(x): Symbol
Reference: Julia constants