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

How can you increase the size of a statically allocated array?

1064


The % symbol has a special use in a printf statement. Explain how would you place this character as part of the output on the screen?

1185


Explain how do you generate random numbers in c?

1068


What is infinite loop?

1074


What is typedf?

1111


WHICH TYPE OF JOBS WE GET BY WRITING GROUPS .WHEN THE EXAMS CONDUCTED IS THIS EXAMS ARE CONDUCTED EVERY YEAR OR NOT.PLS TELL ME THE ANSWER

1849


What is the auto keyword good for?

1126


What are pragmas and what are they good for?

976


what is the significance of static storage class specifier?

2239


How are pointers declared in c?

1043


What is abstract data structure in c?

1020


Write programs for String Reversal & Palindrome check

1040


What is the difference between strcpy() and memcpy() function in c programming?

1069


Explain what is a 'null pointer assignment' error? Explain what are bus errors, memory faults, and core dumps?

1080


Where is c used?

1080