Printing something without modifying main – video

the video is a simple interview question discussed in this post.

Printing something without modifying main

The below C++ code will print “Hello World”. #include <iostream> int main() { cout<<"Hello World"; } Without modifying main function, add code to print “Ritambhara” […]

syntax of main in C/C++ language

In C/C++ language, main function comes in different flavors as shown below: int main(); int main(int argc, char **argv); int main(int argc, char **argv, char […]

Difference between return & exit(0)

What is the difference between exit(0) and return statement in the main function of a C++ program?