Coding means creating codes from one language to another. Programming means to program a machine to perform using a set of instructions.
Answer:
#define LSH_RL_BUFSIZE 1024
char *lsh_read_line(void)
{
int bufsize = LSH_RL_BUFSIZE;
int position = 0;
char buffer = malloc(sizeof(char) bufsize);
int c;
if (!buffer) {
fprintf(stderr, "lsh: allocation error\n");
exit(EXIT_FAILURE);
}
while (1) {
// Read a character
c = getchar();
// If we hit EOF, replace it with a null character and return.
if (c == EOF || c == '\n') {
buffer[position] = '\0';
return buffer;
} else {
buffer[position] = c;
}
position++;
// If we have exceeded the buffer, reallocate.
if (position >= bufsize) {
bufsize += LSH_RL_BUFSIZE;
buffer = realloc(buffer, bufsize);
if (!buffer) {
fprintf(stderr, "lsh: allocation error\n");
exit(EXIT_FAILURE);
}
}
}
}
Explanation:
Answer:
the rule that defines how packets of data are transmitted between computers and networks
Explanation:
Transmission control protocol is full form of TCP and Internet protocol are used in combination to transmit the data and packets between network and computer. These protocols are used to communicate different devices that are interconnect on the network via internet.
Answer:
F
Explanation:
they are initialized to 0 by default.static variables are shared variables
Answer:
C
Explanation:
C. information about the cast and crew