- World's Largest Collection of Interview Questions
Start Your Own website Now
Sponsored Links

Interview Questions
Our Services

Get 9,000 Interview Questions & Answers in an eBook.

  • 9500+ Pages
  • 9000 Question & Answers
  • All Tech. Categories
  • 14 MB Content

    Get it now !!

    Send your Resume to 6000 Companies

    Question :
    What is difference between void main() and main() and main(void)?

    Posted by: ashish on 5/19/2008

    Contact ashish Contact ashish
    Category General Interview Questions
    Rating (0.4) By 1458 users
    Added on 5/19/2008
    Views 2184
    Rate it!

    Every function has a default return type as int .. void main () ensures that the main function does not return anything

    Posted by: Zoheb    

    Contact Zoheb Contact Zoheb

    Void main,void means doesn't return anything.void is a garbage collection of values.The default return type will be int.

    Posted by: krithikha    

    Contact krithikha Contact krithikha

    void main() - It will not return anything...

    main() - It will return a value of type int...

    main(void) - It will return a value of type int without taking any arguments...

    Posted by: richa    

    Contact richa Contact richa

    void main() returns NULL to the os as dennis richtie said n main() return the integer value coz default work as a int main().

    Posted by: nitin R S Chaudhary    

    Contact nitin R S Chaudhary Contact nitin R S Chaudhary

    As per may Knowledge every function has a default return type as int .. so, main() returns a int value, but void main () ensures that the main function does not return anything..

    Posted by: Saday Kumar    

    Contact Saday Kumar Contact Saday Kumar

    If you have the better answer, then send it to us. We will display your answer after the approval.
    Rules to Post Answers in

  • There should not be any Spelling Mistakes.
  • There should not be any Gramatical Errors.
  • Answers must not contain any bad words.
  • Answers should not be the repeat of same answer, already approved.
  • Answer should be complete in itself.
  • 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
    How can I save a file with a password when that file is already saved (without password)
    View Answer
    I have saved a file and later on wants to save it with a password. How can I do this ?
    View Answer
    What routing protocol uses the most bandwidth?
    View Answer
    Why do you want to leave the current job that you are in now?
    View Answer
    In an interview how does the company select any candidate? on wat basis.
    View Answer
    A 'C' program to find out the most frequent word in a given input file of text,neglecting the case sensitive condition.
    View Answer
    Why i should do MBA?
    View Answer
    Can you work under pressure?
    View Answer
    Tell me about summer training in B.Tech 2nd yr with Computer Science?
    View Answer
    Difference between jsp writer and print writer.
    View Answer
    Why do you think you would be a good candidate for this position?
    View Answer
    What is the largest prime number stored in 8 bit memory?
    View Answer
    Define lexical analysis?
    View Answer
    Tell me about yourself ?
    View Answer
    How to expalin favourite spot in an interview? breifly with example
    View Answer
    Why do your percentage from 1st semester decreases till your 5th semester?
    View Answer
    How can I extend my self introduction for 10-15 minutes?
    View Answer
    What is the difference between programmer and developer
    View Answer
    What should i say if anybody ask me to say about me which is not in my resume.
    View Answer
    What salary you are expecting from company?
    View Answer

    Please Note: We keep on updating better answers to this site. In case you are looking for Jobs, Pls Click Here - Best Freshers & Experienced Jobs Website.

    View ALL General Interview Questions

    User Options
    Sponsored Links

    Copyright ©2003-2015, All Rights Reserved.
    Privacy Policy | Terms and Conditions

    Download Yahoo Messenger | Placement Papers| FREE SMS | ASP .Net Tutorial | Web Hosting | Dedicated Servers | C Interview Questions & Answers

    Testing Articles | Testing Books | Testing Certifications | Testing FAQs | Testing Downloads | Testing Interview Questions | Testing Jobs | Testing Training Institutes

    Cache = 0.046875 Seconds