Computers and Technology
Computers and Technology, 30.07.2020 17:01, rhill5

The following is defined for this question struct entry
{
int num;
entry * next;
};
entry * head, * cur, * pent;
int n = 5, cnt=0;
pent = new entry;
pent->num = 7;
pent->next = NULL;
for (cur=head;cur!=NULL;cur=cur->nex t)
{
if (cur->num >= n)
break;
cnt++;
}
cout << cnt< If entry, cur, head, num and cnt are defined as earlier and head points to a linked list of numbers, the above code displays
a. The total number of entries in the linked list if head is pointing to an ordered linked list.
b. The total number of entries which has a number less than n if head is pointing to an ordered linked list.
c. The total number of entries which has a number less than n.
d. The total number of entries which has a number greater than n.
e. The total number of entries which has a number greater than n if head is pointing to an ordered linked list.

answer
Answers: 3

Other questions on the subject: Computers and Technology

image
Computers and Technology, 23.06.2019 02:30, bre563
Research data that is presented using descriptive language is said to be
Answers: 2
image
Computers and Technology, 23.06.2019 03:00, jarteria0
State 7 common key's for every keyboard
Answers: 1
image
Computers and Technology, 23.06.2019 19:30, wilkinsonei4069
Anul 2017 tocmai s-a încheiat, suntem trişti deoarece era număr prim, însă avem şi o veste bună, anul 2018 este produs de două numere prime, 2 şi 1009. dorel, un adevărat colecţionar de numere prime, şi-a pus întrebarea: “câte numere dintr-un interval [a, b] se pot scrie ca produs de două numere prime? “.
Answers: 1
image
Computers and Technology, 25.06.2019 05:30, jackiemiranda2010
Why are weather forecasts more reliable now compared of hundred years ago
Answers: 1
Do you know the correct answer?
The following is defined for this question struct entry
{
int num;
entry * nex...

Questions in other subjects:

Konu
Mathematics, 05.05.2020 13:43