B, C, and D are the correct answers.
Answer:
The answer to this question is option "b".
Explanation:
In the method definition, we perform swapping. To perform swapping we define a variable "temp" that swap values of variable p1 and p2 and store in array that is "values". and other options are not correct that can be defined as:
- In option a, It does not insert any new value in array because we do not pass any value in function.
- In option c, The function does not copy and assign a value in a new array because in this function we not assign any new array.
- In option d, It is incorrect because it can not move an element into high index position.
Answer:
ISP is the correct answer to the following question.
Explanation:
ISP(Internet Service Provider) is the company or an organization which provides the internet connection or access to any persons, individuals or any company. It is the device that connects networks and direct flow of the data or information through the network. If you want to connect through ISP then, you have to connect this device to the computer system.
Answer:
The restaurant chain system consist of restaurant id, name, zipcode, manager id, menu list.
Manager; manager id, name, phone no, and store.
Menu; menu id, type, items and description.
Items; item id, price and description.
Explanation:
Please look at the attachment for the E. R diagram.
Void test(char *s)
{
int i, d;
sscanf(s, "%i", &i);
printf("%s converts to %i using %%i\n", s, i);
sscanf(s, "%d", &d);
printf("%s converts to %d using %%d\n", s, d);
}
int main()
{
test("123");
test("0x123");
return 0;
}
outputs:
123 converts to 123 using %i
123 converts to 123 using %d
0x123 converts to 291 using %i
0x123 converts to 0 using %d
As you can see, %i is capable of parsing hexadecimal, whereas %d is not. For printf they're the same.