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 are the benefits of c language?

1175


Why c is called top down?

1155


What is the size of enum in c?

1112


What is the difference between array and structure in c?

1157


program to find out date after adding 31 days to a date in the month of febraury also consider the leap year

3087


What does d mean?

1083


How to implement a packet in C

2883


Explain what are the different file extensions involved when programming in c?

1107


Why we use void main in c?

1161


What is the ANSI C Standard?

1269


What is wrong with this statement? Myname = 'robin';

1323


Write a program of prime number using recursion.

1082


What is the collection of communication lines and routers called?

1120


Why does everyone say not to use scanf? What should I use instead?

1422


Explain how can I prevent another program from modifying part of a file that I am modifying?

1086