NPTEL Problem Solving Trough Programming In C Week 9 Programming Assignment | NPTEL Swayam Assignment Answers
Join Us On Telegram
👇👇👇👇👇👇
Join Us On Youtube
👇👇👇👇👇👇
Nptel Week 9 Programming Assignment Answers:
Q.1: Write a program to print all the locations at which a particular element (taken as input) is found in a list and also print the total number of times it occurs in the list. The location starts from 1.
For example if there are 4 elements in the array
5
6
5
7
If the element to search is 5, then the output will be:
5 is present at location 1
5 is present at location 3
5 is present 2 times in the array.
Q.4: Write a C program to reverse an array by swapping the elements and without using any new array.
0 Comments