C# Programming - Functions and Subroutines - Discussion

Discussion :: Functions and Subroutines - General Questions (Q.No.11)


Which of the following statements are correct about functions used in C#.NET?

  1. Function definitions cannot be nested.
  2. Functions can be called recursively.
  3. If we do not return a value from a function then a value -1 gets returned.
  4. To return the control from middle of a function exit function should be used.
  5. Function calls can be nested.

[A]. 1, 2, 5
[B]. 2, 3, 5
[C]. 2, 3
[D]. 4, 5
[E]. None of these

Answer: Option A


No answer description available for this question.

Kevin said: (Apr 6, 2018)  
Yes, we can write a nested function in C# using delegates.

Post your comments here:

Name *:

Email   : (optional)

» Your comments will be displayed only after manual approval.