TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Hemant Sharma
NA
8
14.1k
optional parameter write methods
Jun 8 2014 12:37 AM
Hi all i am a absolute beginner of c#5.0 and i want to understand how the Console.Writeline is different for optional parameters e.g
class test
{
static void Prg(int a=0,int b=0,int c=0,int d=0)
{Console.Writeline(a,b,c,d);}
static void Main()
{
Prg();
}
i want to print values for a,b,c,d as 0 0 0 0 in o/p
but iit shows error as 'overload method has some invalid arguments.
tell me methods for Console.Write() for this code,thanks in advance.
Reply
Answers (
6
)
Export table data from database to excel sheet
how to assign a role to access only a particular page in asp