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


INTERVIEW QUESTIONS MICROSOFT C# DETAILS
Question :
The following is a correct call to the Main() function


Category C# Interview Questions
Rating (0.0) By 0 users
Added on 7/28/2006
Views 1226
Rate it!
Answers:

To call a method, you just give the name and parameters. The correct way to call public static void Main() is to use 'Main();'. I'm not sure why the answer isn't C.The proper way to _declare_ the Main(0 function isstatic void Main()But if we are talking about _the_ Main() method then the proper way is:public static void Main(string[] args) {}-Chris



the correct method of call method of main is using main function declaretion it is given below
using system; and then use the method of satic void main(){}
here satic should define must otherwise the function doesn`t invock the main function



 Posted by: v.senthil    

Contact v.senthil  Contact v.senthil


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
All the C# programs must have the following statement

View Answer
To write a line of text to the xonsole window, we make the following call

View Answer
There must be at least the following function in a C# program

View Answer
Every statement in C# must end in

View Answer
The C# code files have an extension

View Answer
You can create the following using C#

View Answer
From command line, a C# program can be compiled using

View Answer
ASP.NET web pages can be programmed in C#?

View Answer
All the .NET languages have the following in common




View Answer
IL code compiles to

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/9082/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.67