Posts

Showing posts from October 29, 2017

programs of expression

Image
Expression: There are four expression 1-Arithmetic expression 2-Relational expression 3-Logical expression 4-Compound expression 1-Arithmetic expression: There are  5  arithmetic operator which are as follows Arithmetic operator Symbol Example Sum + A+B Subtraction - A-B Multiplication * A*B Division / A/B Module % A%B there are two types of low and high precedence level .High precedence operators are *,/,% and low precedence operators are +, - EXAMPLE OUTPUT Logical Operator it is use for compound condition by combining two or more conditions . There are three types of logical operators Logical operator Symbol Example Not ! A! AND && A&&B OR  I I

using gets statement

Image
FUNCTION OF GETS IN C LANGUAGE: In C language while inputting value space are not allowed to add space while inputting the name(char) we use gets inteed of scan  SYNTAX {  Int a[20]; printf("\n8888"); gets(a); } int a[20] a is the supposition and [20] is known as dimension EXAMPLE PROGRAM(simple) OUTPUT Program (Difficult)