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:
gives back less (or distorts) than what the client has said.
Explanation:
Emotional intelligence can be defined as the cognitive ability of an individual or person to be able to recognize his or her emotions, have an understanding of the message being conveyed and knowing how these emotions affect the people around him or her.
Basically, there are five (5) main characteristics or features of emotional intelligence and these are;
I. Motivation.
II. Self-awareness.
III. Social skills.
IV. Self-regulation.
V. Empathy.
Empathy simply means putting yourself in a person's position, depicting how you will feel if you were in his or her situation. Also, empathy depicts getting the perspective of a thing through another person's lens, eyes or ears.
There are three (3) main types of empathy and these includes;
I. Basic (interchangeable empathy).
II. Additive empathy.
III. Subtractive empathy.
In Subtractive empathy, the counselor responses gives back less (or distorts) than what the client has said.
This ultimately implies that, subtractive empathy requires the counselor using an inappropriate listening or influencing skills.
The condition known as <u>overflow</u> occurs when you try to store an integer that is bigger than the maximum allowed by the number of bits you have.
<h3>What is a buffer?</h3>
In Computer science, a buffer can be defined as a temporary area set aside on a computer system for the storage of data. This ultimately implies that, a buffer reside in the random access memory (RAM) of a computer system.
In the event that a computer system process or software program places more data (much more than what was originally intended to be allocated for data storage) in a buffer, the extra data overflows.
In this context, we can infer and logically deduce that when a value is assigned to an integer that is too big or large for the computer to represent, it is a condition referred to as an overflow.
Read more on overflow here: brainly.com/question/26143242
#SPJ1
Answer:
The output is "Pasta"
Explanation:
Given
The attached code segment
Required
The output
The first line of the program implies that:
MyFavFood="Pasta"
This means that, the value of the variable MyFavFood is string "Pasta"
Next,
print (MyFavFood)
This prints the value of the variable MyFavFood which is "Pasta"
<em>Hence, the output is "Pasta"</em>