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

a program that can input number of records and can view it again the record

1488


What is sizeof return in c?

619


How do you declare a variable that will hold string values?

672


write a program to find out prime number using sieve case?

1646


What are # preprocessor operator in c?

634






what are bit fields? What is the use of bit fields in a structure declaration?

1503


Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop

1719


how we can make 3d venturing graphics on outer interface

4019


What are the loops in c?

597


A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor

626


FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above

627


Why is c so important?

600


What are valid operations on pointers?

674


What is the difference between typedef and #define?

552


What are different types of variables in c?

573