C++ was derived from C, and is largely based on it. C++ is a general purpose Programming language.
A C++ program is a Collection of commands or statements. Below is a simple program template.
using namespace std;
#include <iostream>
int main (){
return 0;
}
The entry point of every C++ program is the main() function, irrespective of what the program does.
Curly brackets {} indicate the beginning and end of a function, which can also be called the function body. The information inside the brackets indicates what the function
does when executed.
subscribe my channel for more updates
ReplyDelete