Learn easy with esyteach computer basic language

Saturday, 20 May 2017

Things To Know While Writing An Arithmetic Statement

When you use an Arithmetic statement, you have to take special care of the following:

   C language allows you to type a single and the only left of an equals sign.
Z = k * 1 This is perfect but if you write it like this
K * 1 = z then it would be wrong.
   When using a statement to lessen the character constants in the character variable, it is equivalent to the Arithmetic indicator as if:
Char a,b,d;
A='F';
B='F';
D='+';
   In the semantic operation we can use int, float and char as:
Char , y;
Int z;
X='a';
Y='b';
Z=x+y;
Here the characters are actually using their ASCII values. Like the A and B's ASCII values are 97 and 98.
   The operator you want to use when writing semantic instructions. It is compulsory to write it You can not assume that the operator will be used in the statement itself. In the general semantic statement, we write the process of multiplication like this:

A=c.d.b (xy)

But in C language this statement will be written in such a way-

A=c*d*b*(x*y)
   There is no operator in C language that will complete exponential so the following statement is incorrect -
A=3**2;
B=3^2;



0 comments:

Post a Comment