Structure of a C++ Language

A computer  is a Sequence of steps that are needed to full fill a task.Usually computer programs written by Computer scientist or Software Engineers.Programming languages are independent of specific computer architecture, they are human creations.C and C++ languages are good example for  general purpose languages.Both are  speed and near to machine language speed. So the programmers loves to program in C or C++ rather than Pascal,Cobal or Basic.

Structure of a C++ Program is given below

main()

{

statements 1

-------------------------

-------------------------

statements n

}

The main function defines a function called main. A function is a collection of programming instruction that is made for a particular task.Every C++ program must have a main function.The statements are executed inside curly braces.

Comments

No comments yet.

    Sign in or sign up and post using a HubPages Network account.

    0 of 8192 characters used
    Post Comment

    No HTML is allowed in comments, but URLs will be hyperlinked. Comments are not for promoting your articles or other sites.


    Click to Rate This Article
    working