Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to write in a function declaration and in function call in
which the function has 'n' number of varible or arguments?

Answer Posted / aravind

#include<stdio.h>
int example(int );/*function prototype*/
int main()
{
int a[4]={1,2,3,4,5},i;
example(a[0]);/*function call*/
printf("a=%d",a[i]);
}
int example(int b[k])/*function defintion*/
{
int j;
for(j=0;j<=4;j++)
printf("%d",b[j]);
}
/*here i took n=4*/

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does the c in ctime mean?

1099


What should malloc() do? Return a null pointer or a pointer to 0 bytes?

1081


Design a program which assigns values to the array temperature. The program should then display the array with appropriate column and row headings.

2328


What are header files and explain what are its uses in c programming?

1135


what is reason of your company position's in india no. 1.

2341


Why are algorithms important in c program?

1126


What does malloc () calloc () realloc () free () do?

1068


Why functions are used in c?

1142


What is the Purpose of 'extern' keyword in a function declaration?

1084


C program execution always begins with a) #include b) comment (/*-------*/) c) main() d) declaration instructions

1058


What is an identifier?

1036


Do you know what are bitwise shift operators in c programming?

1105


Where static variables are stored in memory in c?

1004


Explain about block scope in c?

1094


What are called c variables?

1068