Wednesday, June 3, 2009

Language & Grammar

Q. What is Language and what is Grammar? Why Language & Grammar is needed for computer science?

Ans. To express our self to someone i.e. to communicate with someone we need some medium. That medium is language. Hindi, English, Bengali all are used to communicate among persons. So these are languages.
For constructing a language there are some rules. With out the rules a language can not exist. These rules are called Grammar for that language. With out a Grammar a language can not exists.
In computer science, to communicate with computer hardware the user needs some languages for programming purpose. Like C, C++, Java. They are called programming language. These languages are used to communicate with computer and user. So they can be called language. For constructing the languages there are some rules to be followed. The rules are called grammar for that programming language.

No comments:

Post a Comment