jdfjkdsfhjkdshgjdfgjdfhkgjhdkjghdjgxmnxvnxvxmjdsfjsfjdsfjdjf
☺Note: All Questions are note it in your copy. Question No-1: Evaluate the following C++ expressions where a, b, c are integers and d, f are floating point numbers. The Value of a = 6, b = 2, d = 1.5 a) f = a + b/a b) c = ( a++) * d + b c) c = a – ( b++ ) * (–a) Question No:2 Explain Unary,Binary and Ternary Operators? Give Example of each type. Answer:- Unary Operators : Operators that operates or works with a single operand are unary operators. Example: (++, –) Binary Operators : Operators that operates or works with two operands are binary operators. Example: +, –, *, /. Example: +, –, *, /. Ternary Operator : These operator requires 3 expressions or operands to function. Example: Conditional operator- Expression1 ? Expression2 : Expression3 . Here, Expression1 is the condition to be evaluated. If the condition(Expression1) is True then we will execute and return the result of Expression2 el...
Comments
Post a Comment