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” before “Hello World”. You cannot add/remove any statement to main function
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 **envp); int main(int argc, char **argv, char **envp, char **apple); What is the signature of main specified in the language standard ?
Difference between return & exit(0)
What is the difference between exit(0) and return statement in the main function of a C++ program?