c #include
#include <iostream>
int main() {
std::cout << "Hello, World!";
return 0;
}
Explanation:
- #include <iostream>
: This line includes the input/output stream library, which allows the program to perform input and output operations.
- int main() {
: This line indicates the beginning of the main function, which is the entry point of the program.
- std::cout << "Hello, World!";
: This line outputs the text "Hello, World!" to the standard output stream.
- return 0;
: This line signifies the end of the main function and returns the value 0 to the calling process, indicating successful execution of the program.