subject
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.

ansver
Answers: 3

Another question on Computers and Technology

question
Computers and Technology, 21.06.2019 13:20
Arectangular room is 4 meters longer than it is wide and its preimeter is 32 meters find the dimensions of the room
Answers: 3
question
Computers and Technology, 21.06.2019 17:00
Ineed a good science fair name i’m doing a homemade water filter and i have no idea what the title should be plz
Answers: 1
question
Computers and Technology, 23.06.2019 04:20
4. a1. vince owns a television repair shop that is insured undera commercial package policy. the policy includes thebuilding and personal property coverage form and thecauses-of-loss broad form. the declarations page indicatesthat coverage applies to both the building and the namedinsured's business property. explain whether or not thefollowing losses would be covered under his policy.a. a fire occurs on the premises, and the building isbadly damaged.b. a burglar steals some money and securities from anunlocked safe.c. a business computer is damaged by vandals whobreak into the shop after business hours.d. a tornado touches down near the store. several tel-evision sets of customers in the shop for repair aredamaged in the storm.til
Answers: 2
question
Computers and Technology, 23.06.2019 12:50
Which syntax error in programming is unlikely to be highlighted by a compiler or an interpreter? a variable name misspelling a missing space a comma in place of a period a missing closing quotation mark
Answers: 1
You know the right answer?
The following is defined for this question struct entry
{
int num;
entry * nex...
Questions
Questions on the website: 13722367