recategorized by
485 views

1 Answer

0 votes
0 votes
this is not in the today's syllabus

instead we can write a c program for computing product of all the elements in a linked List

int calculate(Node *head){

Node *temp = head;

int product = 1;

while(temp!=Null){

product*=temp->data;

temp=temp->next;

}

return product;

}
cheers :)

Related questions

0 votes
0 votes
0 answers
2
go_editor asked Dec 19, 2016
486 views
Which of the following features are available in Ada?procedures, monitors, packages, common statement, goto statement, generic unit tasks, backtracking, recursion, except...
0 votes
0 votes
1 answer
3