Use app×
Join Bloom Tuition
One on One Online Tuition
JEE MAIN 2026 Crash Course
NEET 2026 Crash Course
CLASS 12 FOUNDATION COURSE
CLASS 10 FOUNDATION COURSE
CLASS 9 FOUNDATION COURSE
CLASS 8 FOUNDATION COURSE
0 votes
683 views
in Computer by (49.9k points)

Link is an entity which can hold a maximum of 100 integers. Link enables the user to add elements from the rear end and remove integers from the front end of the entity. 

Define a class Link with the following details: 

Class name: Link 

Data Members/instance variables: 

Ink []: entity to hold the integer elements, 

max: stores the maximum capacity of the entity, 

begin: to point to the index of the front end. 

end: to point to the index of the rear end. 

Member functions:

Link(intmm): constructor to initialize max = mm. begin = 0. end = 0. 

void addlink (int v): to add an element from the rear index if possible otherwise display the message “OUT OF SIZE… ” 

int dellink(): to remove and return an element from the front index. 

if possible otherwise display the message “EMPTY …” and return – 99. 

void display(): displays the elements of the entity.

What type of data structure is the above entity?

Please log in or register to answer this question.

Welcome to Sarthaks eConnect: A unique platform where students can interact with teachers/experts/students to get solutions to their queries. Students (upto class 10+2) preparing for All Government Exams, CBSE Board Exam, ICSE Board Exam, State Board Exam, JEE (Mains+Advance) and NEET can ask questions from any subject and get quick answers by subject teachers/ experts/mentors/students.

Categories

...