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 the difference between void main and main in c?

1203


An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above

1216


Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?

1152


What are the advantages of using macro in c language?

1183


When would you use a pointer to a function?

1092


How to compare array with pointer in c?

1161


How do we print only part of a string in c?

1077


What are the advantages and disadvantages of pointers?

1119


Can you mix old-style and new-style function syntax?

1152


What are different storage class specifiers in c?

1136


Explain what are linked list?

1089


How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?

2134


What is %lu in c?

1326


A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler

1153


How can you call a function, given its name as a string?

1204