Int main(void){
int n,s=0;
while(1){
scanf(" %d",&n);
if(n<0) break;
s+=n;
}
printf("sum=%d\n",s);
return 0;
}
Answer:
getc() or feof() in c/c++.
Explanation:
getc() returns EOF(End of File) when the end of the file reached is reached but it is not efficient because it also return EOF when it fails.
feof() returns non-zero value when the EOF is reached otherwise it return 0.So feof() is an efficient method to read a file.
For example:-
#include <stdio.h>
int main()
{
FILE *f = fopen("sample.txt", "r");
int c = getc(f);
while (c!= EOF)
{
putchar(ch);
ch = getc(f);
}
if (feof(f))
printf("\n File has ended.");
else
printf("\n Reading not happened.");
fclose(f);
getchar();
return 0;
}
The Answer is Router <span> Solicitation. </span>
This is because RS is used to determine which routers are present on a specific sub net by sending a message asking for a router advertisement that provides details about a specific router.
A. Increase the cell width this is because there is not enough room in the cell to display the number that was given.
Answer:
the correct answer is in the below file
xh5jg5l.com