6
What is the output of the following program?
Func<int, int> f = x => x + 1;
Func<int, int> g = x => x * 10;
Console.WriteLine(g(f(4)));DiscussEasy
Loading subject content…
Loading practice questions…
What is the output of the following program?
Func<int, int> f = x => x + 1;
Func<int, int> g = x => x * 10;
Console.WriteLine(g(f(4)));What is the output of the following program?
Func<int, int, int> add = (a, b) => a + b;
Console.WriteLine(add(2, 3));What is the output of the following program?
Func<int, int> sq = x => x * x;
Console.WriteLine(sq(6));