Thursday 3 August 2017

Syntax of Programming Languages

If we want to write English paragraph then some rules have to follow, these set of rules are called grammar. In the same way programmer has to follow set of programming rules called syntax. Suppose in following instruction is written according to rules
cout<<”Rao Israr”;
But when these rules are violated like
cout<<’Rao Israr’;

Called syntax error, because single quotation marks are used except double.

No comments:

Post a Comment