Q1. Write a function that accepts an array of integers and returns the second largest integer in the array. Return -1 if there is no second largest.
The signature of the function is
public class ID
{
public static void main(String[] args){ }
int f(int[ ] a) { }
}
Examples...
Write a TSR program that changes the background color of the screen to red every 5 second and then white next 5 second, And this continues until you press ‘Q’ It should not modify the text displayed on the screen.
Hint:
1_ Intercept Keyboard interrupt (0x09H)
2_ Use video text memory...