Answer:
Answered below.
Explanation:
\**This is written in the Kotlin programming language.**/
interface Tollable{
fun pay(payInDollars: Int) : Int
}
\**Interfaces are used to declare properties and methods that are common to different classes. As a result different classes can extend one interface.
The properties and methods in an interface are not always initialized. Classes extending from the interface are responsible for initializing these properties and methods. In Kotlin, a class can extend from more than one interface.**/
Answer:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main()
{
int arr[100];
int i = 0;
int j = 0;
char c[10];
char temp;
int sum = 0;
FILE* fp;
if ((fp = fopen("test.txt", "r")) == NULL) {
printf("cannot open the file");
return;
}
else {
do {
temp = fgetc(fp);
if (temp == ' ' || temp == '\n') {
c[j] = '\0';
arr[i++] = atoi(c);
j = 0;
continue;
}
c[j++] = temp;
} while (temp != EOF);
for (j = i - 1; j >= 0; j--) {
printf("%d\n", arr[j]);
}
}
getchar();
}
Explanation:
Answer:
<u>B) Throwable</u>
Explanation:
Great question, it is always good to ask away and get rid of any doubts that you may be having.
There are a wide range of classes on the exception class hierarchy. All the way on the top is the Objects Class but since that is not an available answer we will move on to the next one. The next one is the <u>Throwable</u> class. therefore that is the answer.
**Exception is after Throwable , and Arithmetic Exception is at the bottom.... everything is a class so that is not a part of the hierarchy **
I hope this answered your question. If you have any more questions feel free to ask away at Brainly.
Answer:
I guessed D, taking it right now, sorry if it's wrong
Explanation: