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...

Why cann't whole array can be passed to function as value.

Answer Posted / vignesh1988i

ya it's possible ..... we can pass whole array as an value....

let's take the code :

void function(char [] );
void main()
{
char ch[30];
function(ch);
getch();
}

void function(char ch[])
{
printf("%s",ch);
}

thank u

hope this will work.....

Is This Answer Correct ?    0 Yes 4 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is table lookup in c?

1034


When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?

1209


Explain void pointer?

971


Explain how can a program be made to print the name of a source file where an error occurs?

1134


If errno contains a nonzero number, is there an error?

1291


What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?

1383


Is null always equal to 0(zero)?

990


Define Array of pointers.

1045


What is a wrapper function in c?

1075


Explain about C function prototype?

1026


Differentiate between null and void pointers.

1117


Find duplicates in a file containing 6 digit number (like uid) in O (n) time.

3183


Explain what is page thrashing?

1053


What is switch in c?

1047


What is masking?

1102