EXP19.docx - EXPERIMENT-19 Write a program to count the number of repetitions of a number in a linked list#include <stdio.h> int occur(int int int int

EXP19.docx - EXPERIMENT-19 Write a program to count the...

This preview shows page 1 - 2 out of 2 pages.

EXPERIMENT-19 Write a program to count the number of repetitions of a number in a linked list. #include <stdio.h> int occur(int [], int, int); int main() { int size, key, count; int list[20]; int i; printf("Enter the size of the list: "); scanf("%d", &size); printf("Printing the list:\n"); for (i = 0; i < size; i++) { list[i] = rand() % size; printf("%d ", list[i]);
Image of page 1
Image of page 2

You've reached the end of your free preview.

Want to read both pages?

  • One '19

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture