Conditional statement, Basic Computer Science

Conditional statement:

An If statement is composed of three parts. The first part should be keyword w.r.t language to convey to the computer that it is if statement. And a Boolean expression. The second and thirds part can be a statement or group of statements as defined in rules of grammar of language.    Generally, an if statement is evaluated and executed in the following sequence: first it evaluates the boolean expression. If the expression is true, the statements in the second part are executed.

Otherwise if it is  false, the statements in the third part are executed.  The third part is optional; if it is absent and the expression is false, then the program control simply moves on to the next statement in the sequence.  

Posted Date: 10/23/2012 3:56:53 AM | Location : United States







Related Discussions:- Conditional statement, Assignment Help, Ask Question on Conditional statement, Get Answer, Expert's Help, Conditional statement Discussions

Write discussion on Conditional statement
Your posts are moderated
Related Questions
ATM Theory - Unspecified Bit Rate Is intended for non-real time applications, that is, those not requiring tightly constrained delay and delay variation. Examples of applications

4. Union City Al has decided to upgrade their tornado warning system. The city leaders have identified six potential locations for erecting a warning siren tower. They want to e

whats the out put of int main(){ int n=310; funcone(n); functwo(&n); cout return 0; } void funcone(intn) n=240; } void func two(intn*) { n=120; }

Consider the state transition diagram of Figure 3.9b. Suppose that it is time for the OS to dispatch a process and that there are processes in both the Ready state and the Ready/Su

Frequency Division Multiplexing : FDM is an analog technique that is applied when he bandwidth of link is greater than the combined bandwidth of the signals to be transmitted. a

what is the logic diagram for the Boolean expression x''y + xy'' + xz

Disaccharide Sugars: Disaccharide - Carbohydrate made up of two monosaccharides (a sugar dimer) Condensation reaction between 2 monosaccharides Linkage between

What is an encoder? Draw the logic circuit of Decimal to BCD encoder and explain its working.?

My question on the following link: http://www.3n33.com/upload/download.php?img=1410

A procedure is a compilation of instructions to which we can express the flow of our program, and once the execution of these instructions is over power is given back to the next l