Which of these lines of codes in the code snippet given below will throw a compilation error?
public class Sample { public static void Main() { //L1 int num = 4; int A = Square(num); //L2 int B = Square(12); //L3 int C = Square(A * 3); } static int Square(int i) { int input = i; return input * input; } }
Options
- Only L1
- Only L2
- Only L3
- All L1, L2 and L3
- No error will be thrown