Tagged: program to search first occurrence

Search first occurrence of element in an array 9

Search first occurrence of element in an array

Write a program in C language that will accepts n of integer values from the user, accepts the integer element to be searched and displays the position of the element in the array. #include #include #include void main() { int arr[100],i,element,no; clrscr(); printf(“\nEnter the no of Elements: “); scanf(“%d”, &no); for(i=0;i

FREE C Cheatsheet - Speed Up Your C Programming.

FREE C Cheatsheet - Speed Up Your C Programming.

Download a 7-page free cheat sheet for easy and quick access to C Concepts, Snippets, and Syntax.

Thank you! Check you inbox and access your cheat-sheet