Answer Posted / eok
in C you dont have the luxury of the try and catch , unless
you get a non standard library
There is a way to handle errors
C works directly with the machine , so you must make a
function that will take whatever is causing the problem in
the buffers and remove it or clear the buffer altoeghter ,
although clearing the entire buffer can be over zealous
try using ungetc to remove stray pieces from the buffer
but again this really comes down to what error your trying
to deal with
also look at perror and strerror and the libraries errno.h
and stderr.h
hope this helped
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
Explain what is a pragma?
Describe the difference between = and == symbols in c programming?
Explain what math functions are available for integers? For floating point?
What is file in c language?
How will you write a code for accessing the length of an array without assigning it to another variable?
How many types of errors are there in c language? Explain
In C programming, how do you insert quote characters (‘ and “) into the output screen?
Why we write conio h in c?
Write the program that calculates and prints the average of several integers. Assume that the last value read is sentinel 9999.
How is = symbol different from == symbol in c programming?
Is it acceptable to declare/define a variable in a c header?
Why shouldn’t I start variable names with underscores?
What are valid signatures for the Main function?
write a program to print data of 5 five students with structures?
hello freinds next week my interview in reliance,nybody has an idea about it intervew questions..so tell