employer cover photo
employer logo
employer logo

Tata Consultancy Services

Part of Tata Group

Engaged employer

Tata Consultancy Services interview question

Write a program to print all the pairs in array

Interview Answer

Anonymous

Dec 13, 2024

Its a simple code just put two nested for loop. Inner loops start from j=i+1 position and print the the elements at i th and j th position in inner loops.