Answer:
Answer = 25-17
print("25-17", Answer)
Explanation:
You put the sum into a variable which in this case would be Answer and then you can output it with the question.
Answer:
void ranges(int x[], int npts, int *max_ptr, int *min_ptr)
{
*max_ptr=*min_ptr=x[0];
for(int i=1;i<npts;i++)
{
if(x[i]>*max_ptr) //this will put max value in max_ptr
*max_ptr=x[i];
if(x[i]<*min_ptr) //this will put min value in min_ptr
*min_ptr=x[i];
}
}
Explanation:
The above function can be called like :
ranges(x,n,&max,&min);
where x is array and n is number of elements and max and min are address of variables where maximum and minimum values to be stored respectively.
Answer:
replace()
Explanation:
The history object in javascript corresponds to browsing history.
It has the following methods for navigating through the history list:
back(): Go back in the history list
forward(): Go forward in the history list
go() : Navigate to the currently pointed url in the history list. It takes a parameter which can either be a numeric index or a string which is matched with the history list content.
replace() is not a method in the history object.