---
# System prepended metadata

title: Ankur Chaubey

---

# Ankur Chaubey

- Internship
- MERN
- Mongo

# Question 1: Find the 2nd largest number in an integer array. 
```cpp=
// logic

int i;
int num [100];
int number(num){
    for (int i = 0 ; i<= num.length ; i++ ){
      num.sort();
        return num;
        cout<< "Second Largest Number " << num[1] <<endl;
    }
}

//  Javascript 

let num =[70, 89, 67, 78, 93];
let result =num.sort();
console.log("Result" ,result);
let Second = result.length-1;
console.log("Second Largest", Second)
```









