Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

c program to pass a single element in an funtional array

#include <stdio.h>
void output(int values)
{
printf("The value of the 5th element of the array is: %d
", values);
}
int main()
{
printf("Welcome to DataFlair tutorials!

");
int array[6] = {10, 20, 30, 40, 50, 60};
output(array[5]); // Passing the 5th element of the array
return 0;
}
 
PREVIOUS NEXT
Tagged: #program #pass #single #element #funtional #array
ADD COMMENT
Topic
Name
6+7 =