3. The following is a segment of a Program:
int A=1,B=1,N;
if(N>0)
A=A+1;
A=B-1;
What will be the value of A and B, if N assumes a value
i) 1 ii) 0?
pls its my exam
Answers
Answered by
0
Answer
if N value is 1 then A=0 and B=1
if N value is 1 then A=0 and B=1if N value is 0 then A= 1 and B=1
Similar questions
India Languages,
3 months ago
Math,
3 months ago
Social Sciences,
7 months ago
English,
7 months ago
Science,
11 months ago
Environmental Sciences,
11 months ago
English,
11 months ago