Monday, January 31, 2011

What is a Statement ? ( in Programming Languages ! )

Statements and Expressions are primary building blocks of any programming Language.

Expression :- Some thing you evaluate for it's value

eg:- Eval("2*3")  , Eval("a*b+10")

Statement:- Something which you execute for it's Effect

Exec("a=b=2*3"); , Exec("b = 2*3");

After a statement is executed there is chance for state to be mutated ( state is managed by statements )

As per the above definition

STATEMENT means STATE MANAGEMENT

0 comments: