C Single Dimensional Arrays (1-D Arrays)

Back To C Index


1. program to input a string or a char array from the user and then display it - Code
2. program to input integer array from user and then display it using for loop - Code
3. program to input integer array of size 5 using while loop and then display the integer array using while loop - Code
4. program to input an integer array of size 5 from the user and calculate total of the integer array using for loop - Code
5. program to input an integer array of marks in 5 subjects and calculate percentage - Code
6. program to input a character array from the user and find its length using for loop - Code
7. program to input a character array or string from user and find its length using while loop - Code
8. program to input a float array from user and display it using for loop - Code
9. program to check whether string is palindrome or not - Code
10. program to convert a string to upper case without using strupr function - Code
11. program to input a string and find number of vowels,consonants,digits and other characters - Code
12. program to initialize single dimensional integer array and display the array using for loop - Code
13. program to initialize single dimensional char array and display the array using for loop - Code
14. program to initialize single dimensional float array and display the array using for loop - Code
15. program to find maximum and minimum number in an integer array - Code
16. program to input a char array and pass this array to function , function prints the char array - Code
17. program to input an integer array and pass this array to function , function prints the integer array - Code
18. program to input two strings(char array) and concatenate them using for loop (concatenate means to join the strings) - Code
19. program to input a string(char array) and check whether the string is palindrome or not (radar is a palindrome and radaw is not a palindrome) - Code
20. program to initialize an array of 10 elements and find smallest even and odd number - Code
21. program to input a char array (string) and count number of vowels in the string - Code
22. program to input an array of 10 integer elements and calculate largest even and odd number from the array - Code
23. program to input a char array (string) and reverse the string without using strrev function- Code
24. program to input array of 10 integer elements and find sum of even and odd numbers using for loop - Code
25. program to input array of 10 integer elements and find prime numbers from the array (example of arrays and functions )- Code
26. program to convert a string to upper case (capital letters) (without using strupr function in string.h) - Code
27. program to input a string and convert all lowercase letters to uppercase letters and all uppercase letters to lowercase letters - Code
28. program to input a string and replace each space with a hyphen(-) using for loop - Code
29. program to input a sentence (char array) and count number of words in it using for loop - Code
30. program to input a sentence (char array) and count number of vowels in it using for loop - Code
31. program to input a sentence (char array) and count number of vowels and consonants in it using for loop - Code
32. program to input a sentence (char array) and remove multiple spaces with a single space - Code
33. program to initialize an array of 5 integer elements and reverse the array without using another array - Code