Write a C program to create two user-defined functions; first function name as Input() and
second function Print(). Call Input() function from main function and Input() function will take 6
integer as an array input from user. Next pass the array to Print() function, then print all odd
index elements inside Print() function.
Example: Input from user in input() function : { 1, 4, 7, 23, 35, 15} then output printed by

Write a C program to create two user-defined functions; first functi.pdf

  • 1.
    Write a Cprogram to create two user-defined functions; first function name as Input() and second function Print(). Call Input() function from main function and Input() function will take 6 integer as an array input from user. Next pass the array to Print() function, then print all odd index elements inside Print() function. Example: Input from user in input() function : { 1, 4, 7, 23, 35, 15} then output printed by