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


Please Help Members By Posting Answers For Below Questions

How can you read a directory in a C program?

656


hi friends how r u as soon in satyam my interview is start but i m very confusued ta wat i do plz help me frndz wat can i do plz tell me some question and answers related with "C" which r asked in the interview .

1906


What the different types of arrays in c?

618


Define recursion in c.

704


Write a function which takes as parameters one regular expression(only ? and * are the special characters) and a string and returns whether the string matched the regular expression.

657






How do you convert strings to numbers in C?

713


Explain what is a stream?

613


What functions are used in dynamic memory allocation in c?

599


What is the difference between malloc() and calloc()?

619


#include main() { enum _tag{ left=10, right, front=100, back}; printf("left is %d, right is %d, front is %d, back is %d",left,right,front,back); }

723


Explain built-in function?

597


What is the use of a semicolon (;) at the end of every program statement?

780


Is c object oriented?

544


What is the general form of a C program?

602


What is unary operator?

662