What is correct syntax for defining a delegate?

What is correct syntax for defining a delegate?

Correct syntax for defining a delegate:-
[attributes] [modifiers] delegate result-type identifier ([formal-parameters]);
where: 

attributes (Optional):-
Additional declarative information. For more information on attributes and attribute classes, 
modifiers (Optional) :-
The allowed modifiers are new and the four access modifiers. 
result-type :-
The result type, which matches the return type of the method. 
identifier :-
The delegate name. 
formal-parameters (Optional):- 
Parameter list. 
Example:-
  public delegate int delsum(int x,int y);

By:kamal
Date:2014-10-10 00:00:00

Post Your Answers


User Email:

User Name:
Answers:

Related C Links

C interview questions and answers for experienced and fresher