Try this code...
Things added:
1. One mroe pointer to keep track of the previous node visited while searching.
2. Check w.r.t the no. of elements in the list.
Type: Posts; User: amee
Try this code...
Things added:
1. One mroe pointer to keep track of the previous node visited while searching.
2. Check w.r.t the no. of elements in the list.
try this...
/* program to calculate the cumulative products of a set of numbers*/
#include <stdio.h>
#include <math.h>
void main()
{