answersLogoWhite

0

What does return -1 in C means?

Updated: 12/18/2022
User Avatar

Wiki User

11y ago

Best Answer

In most cases it means either error or end-of-file.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: What does return -1 in C means?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the diff between return 0 and return 1 in c?

The value. In some context 1 means 'yes', 0 means 'no'. In other contexts 0 means ok, other values are error codes.


What are the examples of return c language?

return; return -1; return NULL;


Why it display function should return a value in c programme?

It is up to you to decide. You may go for 'void' return type, which means no return value.


Why void is used in c language?

void as function return-type means no return value void as function parameter means no parameter void * as pointer type means generic pointer


What is backslash r carriage return means in c language?

\r means Carriage Return, which means: return the cursor to the beginning of the line in more simple words we can say that it's deleting each character from the active position upto the beginning.


Write code for prime numbers between 1 to 50 in c?

#include #include void main(){int i;for(i=1;i


What means a equals equals equals b in c language?

a b means return true if the value of a is equal to the value of b, otherwise return false. a = b means assign the value of b to the variable a.


What does 1 c of sugar mean?

1 c of sugar means 1 cup of sugar


What is c-1 surplus requirements?

determine an insurers internal rate of return


What is c-1 surplus requirement?

determine an insurers internal rate of return


What happens with the EOF or end of file condition?

In C++ EOF is a special function which will return nonzero when there is no more data to be read. In C++ nonzero means true, the alternative to nonzero is zero which means false.


What is void command in c sharp programming?

void simply means you don't have anything to return w/in a function, it is the same as return 0; public void sample() { MessageBox.Show("This Function do not return anything"); }