Answer:
Option C is false.
Explanation:
The following option is false because the storage capacity of the mobile and the laptops is increasing day-by-day with new models, good features, best storage capacity, and with good battery backup. So, it is not true that the storage capacity of the following devices is shrinking.
- Option A is true about the statement because power consumption will involve mobile devices.
- Option B is true about the statement because mostly features in the mobile devices are unavailable on mobile devices such as portability that is we can use mobiles anywhere and any time and they have one of the best features of calling and messaging anywhere at any time.
- Option C is true about the statement because computer systems have higher levels of software that required good processors for working.
Answer:
d)myints [1] = something.
Explanation:
The elements in the array are stored serially.Every element in the array is indexed and the indexing start form 0 to size-1.So to access the second element in the array it's index will be 1.So to access the second element we have to write arrayname[1];
In our case the name of the array is myints.
Hence the answer is myints[1]=something
Answer:
int result=max(population1,population2);
printf("%d",result);
Explanation:
in above result variable holds the largest value of two variables population1 and population2.Printf displays that largest value.
int result=max(population1,population2);
in above expression , right hand side we are calling max function and on the left hand side we are saving the return value of the function in result variable
<u>Output:</u>
f1 in A
f2 in A
f1 in B
f2 in A
f1 in A
f2 in A
f1 in B
f2 in B
<u>Explanation:</u>
In this snippet, the code makes use of virtual functions. A virtual function is defined as a function that is defined in the base class and redefined in the derived class. If the derived function accesses the virtual function, the program will get executed with the derived class’s version of the function.
In this code, we define the virtual function f1() in class A and also redefine it in class B which is the derived class of A. While executing the program, the function g which takes the object b (class B’s object) as a parameter. It will print class B’s version of f1() rather than class A’s version. This is working off the virtual function.
An array data type is similar to the structure of a row in a database table.