Void clear in C

We  see lots of void in C. Lets clear why we all use  this.

it means  it will return int type value but will not take any parameters..it is also good to define in function prototype

it means it will return int type value but will take parameters that is defined:

it means it will return nothing and if we use return here it will show error as void can’t return a value

but we can return from a condition here is one example:


but if we use return value with int return type it will return 1 as true returning.
example could be written as:

Source: Took some help:

Spread the love