Rust Hello World Program
In Rust Hello World Program, I have introduced Rust programming. We
will learn about the basics of Rust programming in this article.
The
first line starts with //, depicting this line as a comment. A comment
is documentation for another developer. We can also start a comment
after the code. But all comments end at the end of the line.
println!("Hello, world!") // This line prints Hello, world!
In
every programming language, a program is a sequence of instructions for
the processor to execute. We also need a starting point where the
instruction starts executing.
In Rust programming, there
is a special function named the main where the execution of instructions
starts. When all instructions in this function including the calls
to other functions end, the program ends.
After reading Programming Concepts Part III and this article
together with the YouTube video, You might be willing to learn more
about programming.
Last but not least, every
programming language needs some tools to convert human-readable programs
to machine-readable programs. We also need some tools to manage
libraries and programs, so we can use them in a new program.
Happy reading. Please keep in touch.
Comments
Post a Comment