answersLogoWhite

0


Best Answer

The statement p z in c code is a syntax error. The p is an identifier, and so is the z. They cannot be typed tyogether like that unless an operator is placed between them, such as p + z.

User Avatar

Wiki User

10y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What is the meaning of statement p z in c-language?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Continue Learning about Engineering

Can a conditional operator replace an if statement always?

No. An if statement does not require an elseclause and the expression(s) do not return anything to the caller, whereas the conditional operator always executes one of two expressions and always returns the value of the executed expression back to the caller. The executed expression may be yet another conditional operator, thus allowing simulation of nested ifs and if...else if... else statements.Consider the following example:int x = rand();if( x > 100 ) x = 100;We can achieve the same result with a conditional operator:int y = rand();y = y>100 ? 100 : y;However, if we were to expand this statement to an if statement we would not get the original if statement shown above:int z = rand();if( z > 100 ) z = 100;else z = z;The else clause is clearly unnecessary in this case, so the original if statement would be the statement of choice here.As a general rule, if you can make use of the return value in a conditional operator, and must return one of at least two values, then use the conditional operator. Otherwise use an if statement.


How you create a table in C programming language?

Well, I don't know what do you mean by table, but here you are: int main (void) { puts ("A3 B3 C3"); puts ("A2 B2 C2"); puts ("A1 B1 C1"); return 0; }


What is type compatibility in c?

Compatible data types are data types that are intrinsically the same. For instance, typedef int myint; myint x = 0x7fffffff; int y = x; // x and y are the same type, so assignment is permitted. int * p = &x; // compatible, p points to x. *p = y; // compatible, but y is a value, not a memory address. short z = x; // compatible, but z will be truncated to -1. z is -1 because x appears in memory in reverse order: 0xffffff7f. Since z is only two bytes in length it is equal to 0xffff after assignment, which equates to -1.


Give me if else statement?

Use an else if immediately after the body of an ifwhen you have more than one expression to evaluate. Expressions are evaluated in sequence (top to bottom) and the first evaluation that is true (non-zero) will be the one that executes the statements in its body. Any and all of the remaining expressions are ignored, even if they would have evaluated true.In the following example, x, y and z are random integers that could be 0 or 1. We evaluate them one by one looking for the first that is non-zero. The comments show what we know to be true about X, Y, and Z at that point, based upon the evaluations that came before.if( x=1 ){// X is definitely 1, but Y and Z might also be 1.// do something..}else if( y=1 ){// X is not 1, but Y is definitely 1. Z might also be 1.// do something else..}else if( z = 1 ){// Neither X nor Y is 1, but Z definitely is 1.// do something else..}else{// X, Y and Z are all 0.// when all else fails...}


If you have 500 watts at 4 ohms how many watts do you have at 8 ohms?

250 watts approximatelyI assume you have a constant voltage supply. According to P=V^2/R => P*R=V^2, you have a 44.7 volt supply. If you change Resistance to 8 ohms, P=44.7^2/8 => P=250 watts.