Advertisements
Advertisements
प्रश्न
Correct the following code sigment:
if (x = 1)
p = 100;
else
p = 10;
सारिणी
उत्तर
Given Code | Corrected Code |
if (x = 1) p = 100; else p = 10; |
if(x == 1) |
shaalaa.com
Statements
क्या इस प्रश्न या उत्तर में कोई त्रुटि है?
APPEARS IN
संबंधित प्रश्न
What is the alternate name of the null statement?
In C++, the group of statements should be enclosed within: ______
Identify the odd one from the keywords of jump statements?
What are a null statement and compound statement?
Compare an if and a ? : operator.
Write a program to find the LCM and GCD of two numbers.
Write a program to find sum of the series
S = 1 + x + x2 +..... + xn