Monthly Archives: August 2016

Explain syntax of switch case statement in ‘C’ language. Also compare switch case with if else statement. 5m Dec 2009

Explain the syntax of switch case statement in ‘C’ language. Also compare the performance of switch case with if else statement. 5m Dec 2009   The Switch Statement Its objective is to check several possible constant values for an expression, something similar to what we had studied in the earlier sections, with the linking of… Read More »

What is scope of a variable ? Differentiate between Global and Local variables

What do you mean by scope of a variable ? Differentiate between Global and Local variables giving an example of each. 5m Dec 2009  Scope of a Variable Scope of a Variable means the bondaries of the variable in which it appears and can be accessible.   Global vs. Static variables: Global variables are recognized… Read More »