Empty Statement

An Empty statement is a semi-colon and it does nothing. It can be appeared anywhere a statement is been expected. These can be used where the statement is not needed but just demanded. In these cases, blocks are also allowed.

Example :

while(i > 0);
while(i > 0){}

Both the two statements are same.


No comments:

Post a Comment

Overview of AngularJS

AngularJS is an open source web application framework. It is now maintained by Google . The most of the code can be eliminated by using th...