C program to print next greater elements in a given array

Editorial Staff - - C Programming Tutorial


In this program, we are going to share a C program to print next greater elements in a given array. If you are c beginner OR want to start learning the C programming language, then keep your close attention in this tutorial as we are going to share a C program to print next greater elements in a given array with the output.

C program to print next greater elements in a given array

Copy the below C program and execute it with the help of Turbo C compiler. At the end of this program, We have shared the output of this program.

Output:

11 — 13
13 — 21
21 — -1
3 — -1

Liked this program? Do Like & share with your friends.


About: Editorial Staff

Editorial Staff at FreeWebMentor is a team of professional developers leads by Prem Tiwari