Logical functions, Computer Engineering

Logical functions

  We have discussed the If, 'While and For' Statements, and have used expressions within our syntax i.e.
        If ( expression)
          Statement 1;
          Statement 2;
        while (expression);
        for (init;expression;alter)
        while ( expression)

We tended to restrict ourselves to simple expression i.e A == 5 etc. This is a simplification of what an expression really is. The equality sign indicates a logical identity i.e. true or false. Many other logical expressions could yield true or false .The most common ones are AND '&&', OR  '||' and NOT '!' , these behave identical to there truth table counterparts .  Therefore a valid expression could be

        (age > 40) &&( term < 10) 
  If age is greater than 40 and term is less than 10 then it is true or false 
        (age > 40) || (term <10)
  If age is greater than 40 or term is less than 10 then it is true or false 
        (age !> 40) || (term <10)
  If age is not greater than 40 or term is less than 10 then it is true or false

Posted Date: 4/15/2013 6:22:06 AM | Location : United States

Related Discussions:- Logical functions, Assignment Help, Ask Question on Logical functions, Get Answer, Expert's Help, Logical functions Discussions

Write discussion on Logical functions
Your posts are moderated
Related Questions
Perl is a language and MOD_PERL is a module of Apache used to increase the performance of the application.

Use of Typewriters for Multiple Copies : Offices frequently require copies of various letters and documents. The simplest method is to make the copies at the same time along with

Update the permutation algorithm from the text to obtainthe correct list of permutations even if the string haves repeated letters. For example, if you call ListPermutations on the

draw input and output charectoristics of BJT and justify CE configuration provides large current amplification

Q. Demonstration of sorting problem? The term sorting implies organising elements of a provided set of elements in a specific order i.e. descending order / ascending order / al

Q. Find the de Broglie wavelength of electron in the fourth orbit of hydrogen atom. We know that,            λ = 2πr / n λ4 = 2πr 4 / 4  = 2π (4 2 r1) / 4  = 2 X

Q. Library of functions of parallel virtual machine? PVM offers a library of functions libpvm3.a, that application programmer calls. Every function has some specific effect in

Dear, I''m an engineering post graduate in computer science. I would like to work as online tutor. please suggest ideas. Thank You.

Explain the working of any one of centralized SPC? Standby mode of operation is the easiest of dual processor configuration operations. Usually, one processor is active and

Instruction execution is performed in CPU registers. Although before we define process of instruction execution let's first give details on Registers (temporary storage location in