Documente Academic
Documente Profesional
Documente Cultură
Laboratory Session#6: Pointer 1. Write a program to find largest number using pointer and Function concept. 2. Write a Program to find the average of an integer array using pointer and Function concept. 3. Write a function that takes a string as an input and counts the number of vowels, consonants, numeric characters and other characters. The calling function should read the string and pass it to the function. After the function call, the count of vowels, consonants, numeric characters and other characters should be displayed in the calling function. 4. Write a Program to make the students names of n numbers in alphabetic order using concept of pointer. 5. Write a Program to make any array in ascending or descending order using concept of dynamic memory allocation. User Function for main objective of a program. (Hint use library functions malloc() or calloc() and free() in the header file alloc.h)
ASSIGNMENT#6 1. WAP to find the sum of two integer numbers using pointer and function. 2. WAP to insert an element into the array in the position specified by the user using pointer. 3. WAP that prompts the user of two strings, assemble them into a single string and then print the string in reversed using two different functions and pointer. 4. Write a complete program that adds the corresponding elements of two matrices if the elements are positive, otherwise multiply corresponding elements using the concept of passing to the function and pointer. 5. WAP to sort the string in alphabetical order using concept of pointer. 6. WAP to find a determinant of any matrix using concept of pointer and Function. 7. Write a program to print the largest integer value in the array. Make the use of concept of dynamic memory allocation of initialization the array. 8. Write a program that reads positive integer numbers into an array dynamically and pass them to a function where even numbers are filtered into another array and display the array containing even numbers in the main function.
NCE@Computer Programming I