To delve into the point of exposure is not exposed to "set the values, functions and operations of different types of data," presents the following text.
Expressions are combinations of constants, variables, operation symbols (mathematical, logical and relational) and function names used in the body algorithm. Expressions have values, while values \u200b\u200band properties have types. The values \u200b\u200byou can set and get a property class must be compatible with the property and the type of functions is determined by its arguments and return value. In case of default arguments is considered that the latter did not have these values, as to the various operators can be both arithmetic and logical expressions, such as the (+) sum, (-) subtraction, (+ + ) increase, (-) decrease (<) menor, (>) or lower (=) Like others, we also mention the sqrt function returns the result of the square root of x. As an example we can add two numbers together and present the sum. See if the word sum is not in quotes, which tells C + + which is a variable and that the program should write the value of that variable, not the word sum (which would happen if in quotes, like "The sum is: "). Important: When performing an arithmetic operation, which first runs to the right of the equal sign (=) and the resulting value is stored in the variable that is left of the equal sign.
# include main ()
{int num1 = 5;
int num2 = 3;
int sum;
sum = num1 +
court << “La suma es: “ << suma << endl;
num2 return (0);}
• Do According to the explanation and the example given, name at least two operations can be performed using these parameters?
• If we are going to make a multiplication sentence should change in the program?
• What contributions can give more information of this item?
0 comments:
Post a Comment