What is meaning of "Void main" in C Language.
Answer Posted / murthy.y.n
Actually I am not a master in C programming. With my little knowledge and common sense I try to give my view.
The basic dictionary meaning of "void" is nothing or space or empty.For example if two objects are separated by a small distance without any thing between them we, say the space between the two objects is void.
In computer program, we write a function to perform some action.After performing it should give the result (return the value).Some times the act or function may not calculate any thing and may not give any result.
For example ,you want to read some data ,or print hello world etc..
Then you can use the function as void.
Suppose after execution a function gives the sum as an integer we can write int main or float main etc..
so the result given by (return) a function is a float or integer or any such things..
I think I am able to explain in a simple way .If any errors ,please correct me
| Is This Answer Correct ? | 0 Yes | 0 No |
Post New Answer View All Answers
What is an identifier?
Where define directive used?
What is a macro in c preprocessor?
What is pointers in c with example?
What is include directive in c?
What is #include stdio h?
What is volatile variable how do you declare it?
What do you understand by friend-functions? How are they used?
In c programming typeing to occupy the variables in memory space. if not useing the variable the memory space is wasted.ok, how to avoid the situation..? (the variable is used & notused)
How can I recover the file name given an open stream?
Tell us bitwise shift operators?
How do you write a program which produces its own source code as output?
What does d mean?
Is c++ based on c?
What is the value of c?