CoolInterview.com - World's Largest Collection of Interview Questions
Send Free SMS
 Interview Questions  
 Our Services  


INTERVIEW QUESTIONS LANGUAGES C++ DETAILS
Question :
What is void main mean?

Posted by: Mk on 11/18/2007

Contact Mk  Contact Mk
Category C++ Interview Questions
Rating (3.0) By 6 users
Added on 11/18/2007
Views 4641
Rate it!
Answers:



 Posted by: Mohmad A Rah    

Contact Mohmad A Rah  Contact Mohmad A Rah

main is also a function.Operating system will call this function.void means it returns nothing.when the function completed it task, it just goes out of scope.



 Posted by: suresh    

Contact suresh  Contact suresh

void main is standard signature.Void is return type it means function will not return anything main is reserve/key word it means the execution of program will start from this function



 Posted by: deepak jain     

Contact deepak jain   Contact deepak jain

void is a return type but is avoids main to return any thing because main is a function



 Posted by: swapnil    

Contact swapnil  Contact swapnil

Void main indicates the main function return null. that is no definite value is certain or it return any uncertain value.



 Posted by: Soubhagya Mishra    

Contact Soubhagya Mishra  Contact Soubhagya Mishra

Void main indicates the main function return null. that is no definite value is certain or it return any uncertain value.



 Posted by: Soubhagya Mishra    

Contact Soubhagya Mishra  Contact Soubhagya Mishra

By default return type is int,but here void main indicates that the main() not going to return any value.



 Posted by: subhash    

Contact subhash  Contact subhash

void is a data type which is having no return type.void main means function which is having no return type.



 Posted by: vlpyadav    

Contact vlpyadav  Contact vlpyadav

No return value would be returned.



 Posted by: konica    

Contact konica  Contact konica

In C++ it is must that each function should have return type. void main() means this function is returning NULL value.



 Posted by: chandni agarwal    

Contact chandni agarwal  Contact chandni agarwal

void is used for no return type and main returns an integer type of value to the operating system in C++ so when void is used with main then main function will not return any value.



 Posted by: ramneet    

Contact ramneet  Contact ramneet

main is just like any other function in a program and it is built in word from which the execution of the program starts as soon as you compile it and void is the return type which means it returns nothing.
syntax of any function is:
return type fname(argument list)
{
}
here return type is void
fname is main



 Posted by: kishore reddy    

Contact kishore reddy  Contact kishore reddy

It means the main function returns no value



 Posted by: Dev    

Contact Dev  Contact Dev

It will not return any value to the operating system.



 Posted by: madhu    

Contact madhu  Contact madhu

void main means Program body start in this parts.
void is a function and main() show the program body start here.When program compile then void
main show the program body.



 Posted by: Uttam Singh    

Contact Uttam Singh  Contact Uttam Singh

As main is itself a function.so void main means that the main function returns no value.



 Posted by: amarjit    

Contact amarjit  Contact amarjit

Void main means, the main function is not returning anything. Usually in C++ the main function should return integer.



 Posted by: mahendra    

Contact mahendra  Contact mahendra

void main()

In This "Void" Means Nothing

and 'Main" Means It Is The Main Of The Program .
or
compiler understand that the program begins after the line



 Posted by: rajeev    

Contact rajeev  Contact rajeev

Since in C++ main by default return the integer type value. But if we write Void followed by main() it means it does not return any value it takes void.



 Posted by: Jitendra singh    

Contact Jitendra singh  Contact Jitendra singh

It means the function main return null to compiler or window which called the main function.



 Posted by: rohit    

Contact rohit  Contact rohit

void represents main function doesn't return any thing & main is the function where compiler starts execution.



 Posted by: silpa    

Contact silpa  Contact silpa

It means that the main function does not return any value.The return type value is void or zero.



 Posted by: Mukesh    

Contact Mukesh  Contact Mukesh

void main means there is no return type if mention before the function.



 Posted by: jaya singh    

Contact jaya singh  Contact jaya singh

void main is a function whose return type is void(means nothing)when you run your program it gets automatically called from your header file.



 Posted by: amit    

Contact amit  Contact amit

void main is a special inbuilt function of c++,the compiler starts compiling the program from main function only and since it returns nothing,therefore its return type is void.



 Posted by: subodh chaurey    

Contact subodh chaurey  Contact subodh chaurey

It is a function with no return value and in run-time main function to begin program execution.



 Posted by: Srinu    

Contact Srinu  Contact Srinu

void main means it doesn't have return type, i.e no value could be return to main function.



 Posted by: aleem    

Contact aleem  Contact aleem

void main is like a function which do not return a value.



 Posted by: mudit govil    

Contact mudit govil  Contact mudit govil

void Main means that Main function returns value zero.



 Posted by: gagan kumar bhatia    

Contact gagan kumar bhatia  Contact gagan kumar bhatia

It is a main function of the program.



 Posted by: tamil    

Contact tamil  Contact tamil

Compiler expects every function to return a value on completion of its task and main function is not an exception to this case.Void is a data type and function which did not return any value uses the data type void.



 Posted by: manickam    

Contact manickam  Contact manickam

void main is a necessary function included in c/c++ language which defines that the execution of c/c++ program will starts from here.void is a data type and its wont return anything to the function main.But the use of int main is more efficient while defining the main function.



 Posted by: manisha    

Contact manisha  Contact manisha

In c++ we have number of functions which we can use in program but apart from those functions main function is the main function in any language either c or c++ or java etc.In any program main function is important because system control search for main function first then only next anything else.void means null but before main if we write void it mean null, return type is null but it is good practice to write void with any function even it mean null, nothing.



 Posted by: awadh naresh bhagat    

Contact awadh naresh bhagat  Contact awadh naresh bhagat

void is a key word when u write void before any function that particualr function vl not return any value
if ur writing void before main() then it vl not return any value if ur not specifing void before main() then by default it vl return integer value to the operating system .



 Posted by: madhupriya    

Contact madhupriya  Contact madhupriya

Here,void is representing that main is not retuning any value & we used main bacause at the time of execution of programme start up code of operating system look for stating of programme from where to start the programme execution.



 Posted by: Ajinkya Joshi    

Contact Ajinkya Joshi  Contact Ajinkya Joshi

MAIN IS A user defined function OS CALLS IT..void main means function doesn't returns any value!



 Posted by: JAYESH JAIN    

Contact JAYESH JAIN  Contact JAYESH JAIN

void is a return data type which mean it doesn't return any value.
and main is a pre-defined function which is firstly called by compiler.
so void main means that it is a function which doesn't return any value



 Posted by: praveen    

Contact praveen  Contact praveen

main is a standard function and O.S. call it first and void means it returns nothing.



 Posted by: manuja    

Contact manuja  Contact manuja


If you have the better answer, then send it to us. We will display your answer after the approval.
Name :*
Email Id :*
Answer :*
Verification Code Code Image - Please contact webmaster if you have problems seeing this image code Not readable? Load New Code
Process Verification  Enter the above shown code:*
Inform me about updated answers to this question

   
Related Questions
View Answer
create six large matrices in subprogram (100*100) two static and three stack dynamic ...fill two static,two stack matrices with random numbers 1 to 100 ..the code in subprogram must perform large matrix multiplication on static matrices and should repeat this with stack dynamic ...compare and explain result?
View Answer
create six large matrices in subprogram (100*100) two static and three stack dynamic ...fill two static,two stack matrices with random numbers 1 to 100 ..the code in subprogram must perform large matrix multiplication on static matrices and should repeat this with stack dynamic ...compare and explain result?
View Answer
How can I set the background in flash like camera?( black color that some times for a specific time your background becomes white)
View Answer
HI, THIS PROGRAM MUST BE SUBMMITED AS SOON AS POSSIBLE.MAY YOU PLEASE HELP ME TO TACKLE IT ? I?LL BE VERY PLEASE IF I CAN GET HELP.





MULTICHOICE VIDEO RENTAL SHOP needs an Object Oriented program that process the following information about ten (10) videos in their stock
? The title, the director, the year produced and a list of main actors for each video. (If there are more than five main actors, include only the five most famous actors)
? The function setVideo that input information into each video object
? The function getVideo that displays information of a particular video on the screen
? A customer (identified by ID) plus his full names and address can borrow at most 2 videos @ R12.50 per day. A penalty of 10% per day is charged if returned late. The borrow period is at most 7 days
? Video titles should not exceed 25 characters in length. If that happens, truncate the length to a most 25 characters
? A video should be checked if is not rented out before borrow transaction is processed. If borrowed out the customer should either be requested for the second choice or be advised when the video is expected back in the shop
? Failure for the shop to receive the video back within 7 days, is considered permanent loss and the customer is liable to a R400.00 compensation fee
? Information about the number of films in stock at any point in time should be readily available
? At the end of business, a report should be generated showing
o Which films are rented out and when are they due
o To which customers they are borrowed to
o Which videos are left in stock
o How much money was collected for the day
Generate your own test data that will test all cases to illustrate the accuracy and consistency of your program

View Answer
what is abstractor in c++?
View Answer
I want a program on INLINE function and demonstrate the program with INLINE function and without INLINE function.Because i want to know clearly the difference between INLINE FUNCTION AND FUNCTION
View Answer
What is a friend function & its advantage?
View Answer
Where we use reference and where we use pointers ?Write their differences and advantages and disadvantages .
View Answer
what are the disadvantages of copy constructor??
View Answer

Please Note: We keep on updating better answers to this site. Subscribe to our newsletter to get notified when better answer is posted.

Notify me when better answer is posted!
Email:

View ALL C++ Interview Questions

User Options
Sponsored Links


Copyright ©2003-2010 CoolInterview.com, All Rights Reserved.
Privacy Policy | Terms and Conditions
Page URL: http://www.coolinterview.com/interview/12484/default.asp?cachecommand=bypass


Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Free SMS | Dedicated Servers | Joke of the Day

0.72