Answer:
intArray=array(’b’,[2,5,10])
Explanation:on edge
Answer:
Microsoft Windows - More susceptible to viruses
Linux - Limited support system
Apple - Fewer compatible applications
Explanation:
Generally windows is more susceptible to viruses.
Linux is open source meaning it's up to the community to help you.
Apple has been supporting more applications in these coming years but it still lacks the wide range of apps windows supports.
Answer:
return.
Explanation:
When a "return" statement is executed then the given expression or variable in the function is evaluated and the result will be returned by the function when the function is called.With the help of return statement, we can terminate the execution a method/function and then give control to the calling function.
Example:
#include <bits/stdc++.h>
using namespace std;
long long sq( int s )
{
/* here "return" will first execute the expression and then
return the value to the calling function i.e. sq() in the main
function.
*/
return( s * (long long)s );
}
int main()
{
long long y;
int x = INT_MAX;
// sq() will return a value and that value is store in the variable "y"
y = sq( x );
cout<<y<<endl;
return 0;
}
Answer:
a. input={4,4}
b. input={3,6,6}
c. input={7,8,8,4}
d. input={5,7,7,4,4}
e input={4,6,6,7,9,9}
Explanation:
First understanding the method in the method we are iterating over array upto the second last element and in the loop we are checking that the current element is less than then next array element if it is less then we are assigning the value of next element to the current element.So the outputs are stated above according to the method execution.