Answers for "c program to pass entire array into a function"

C
0

c program to pass entire array into a function

#include <stdio.h>
void display( char c)
{
  printf("%c ", c);
}
int main()
{
printf("Welcome to DataFlair tutorials!\n\n");
int i;
char vowels[] = {'a', 'e', 'i', 'o', 'u'};
for (i=0; i<5; i++)
{
display(vowels[i]);
}
return 0;
}
Posted by: Guest on April-02-2022

Code answers related to "c program to pass entire array into a function"

Code answers related to "C"

Browse Popular Code Answers by Language