Answer:
The two main differences between arrays and structures are as following according to me :-
1. Array is collection of data elements of same data type while a structure is collection of variables of different data types.
2.Array is a primitive data type while structure is a user defined data type.
There are other differences also which are as following:-
1. The size of array is fixed while the size of structure is not fixed as structure can contain different variables of different data types.
2.array is declared as following :-
int array [100];
where 100 is the size of the array means it can store up to 100 integer values.
struct class{
int roll_number;
char *name;
int admission_no;
};
3.Traversing and searching in an array is easy and fast while it is difficult and slow in structures.
Answer:
That’s highly illegal. You should notify them that it is illegal. And, if they continue, you should notify the legal team. If it continues, you either need to leave the company or notify the proper authorities.
Answer:
It gives credit to the original author and shows that you are not taking credit for someone
else's work
Answer:
The answer to this question is option "d".
Explanation:
In the given question option d is correct because variable-length argument is a new feature in J2SE 5.0 which stands for java 2 standard edition and 5.0 is the version name. It is the variable-length argument lists. A coder can create functions that uses a function to receive several parameter that is not specified. An argument type followed by an ellipsis(...) in the parameter list of a method means that a fixed number of arguments of that particular type is obtained by the method. and other options are not correct that can be given as:
- In option a, we do not need to use the string the variable-length argument list. That's why it is wrong.
- The option b and c are all wrong because in the last parameter the variable-length argument list is used.
That's why the answer to this question is the option "d".