Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

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

Explain zero based addressing.

1027


Explain how do you declare an array that will hold more than 64kb of data?

1451


Write a program to print "hello world" without using a semicolon?

1060


What is external variable in c?

1061


What is difference between structure and union?

1128


Can I use base-2 constants (something like 0b101010)? Is there a printf format for binary?

1002


What is pragma c?

1122


Where are the auto variables stored?

1147


A function can make the value of a variable available to another by a) declaring the variable as global variable b) Passing the variable as a parameter to the second function c) Either of the two methods in (A) and (B) d) binary stream

1168


Explain how do you print only part of a string?

1216


Define macros.

1272


What are formal parameters?

1117


What is type qualifiers?

1133


What does calloc stand for?

1157


How can my program discover the complete pathname to the executable from which it was invoked?

1074