Answer:
Following are the statement is given below
if(updateDirection ==1) // check condition
{
++numUsers; // increments the value
}
else
{
--numUsers; // decrement the value
}
Explanation:
Following are the description of statement
- Check the condition in the if block .If the "updateDirection" variable is 1 then then control moves to the if block otherwise control moves to the else block statement.
- In the if block the statement is "++numUsers" it means it increment the value by 1 .
- In the else block the statement is "--numUsers" it means it decrement the value by 1 .
Answer:
int count =0;
for(int i=0;i<10;i++)
{
if(myArray[i]>=0)
{
count++;
}
}
cout<<"Number of positive integers is "<<count<<endl;
Explanation:
The above written loop is for counting positive integers in the myArray[].
For counting we have taken a count integer initialized with 0.On iterating over the array if the element is greater than or equal to 0 we consider it as positive and increasing the count.At the end printing the count.
Answer:
ROM : Read Only Memory.
RAM : Random Ascess Memory.
<u>1</u><u>s</u><u>t</u><u> </u><u>Method:</u>
- Reduce the size of the image in <u>Paints.</u>
<u>2</u><u>n</u><u>d</u><u> </u><u>Method:</u>
- Right-click the selected file you want to send.
- Click on <u>Send To</u> > M<u>ail Recipient</u>.
- The Send Pictures via E-mail dialog box appears.
- Click <u>Make all my pictures smaller</u>, and then click OK.
Hope you could understand.
If you have any query, feel free to ask