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
How can I run c program?
in ‘C’ language for Matrix Multiplication fails” Introspect the causes for its failure and write down the possible reasons for its failure.
What is the use of volatile?
what is a constant pointer in C
What are the advantages of using Unions?
What are the types of data structures in c?
What is p in text message?
How do you view the path?
What is difference between array and pointer in c?
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
Is c++ based on c?
Are global variables static in c?
Why dont c comments nest?
What is const keyword in c?
the real constant in c can be expressed in which of the following forms a) fractional form only b) exponential form only c) ascii form only d) both a and b