Wisdom Materials
Home
About Us
Our Clients
Careers
Services
Education
Jobs
News
Business
Health
Astrology
Entertainment
RealEstate
Devotion
Contact Us
C Programs
/ Pass Array to Functions C program
Program Name
Write a C Program for Pass Array to Functions C program.
Theory
Program Code
Copy Program Code
#include
#include
int passarray(int a[], int b); int main() { int a[10],i; printf("Pass Array to Functions C program\n"); printf("Enter Array values\n"); for(i=0;i<5;i++) scanf("%d",&a[i]); passarray(a,4); return 0; } int passarray(int a[], int b) { int i; for(i=0;i
Input
Pass Array to Functions C program Enter Array values 1 2 3 4 5
Output
1 2 3 4
Online C Compiler (To copy paste and Run the c program)
Home
Back