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

Write a program to print fibonacci series using recursion?

585


What are the features of c languages?

626


Explain what is the difference between #include and #include 'file' ?

583


What is a constant?

631


Why clrscr is used in c?

583






What is c language in simple words?

595


If jack lies on Mon, Tue Wed and jill lies on Thursday, Friday and Saturday. If both together tell they lied yesterday. So c the given options and then c cos in the given dates one will be saying the truth and one will be lying. I got Thursday as option because jack is saying the truth he lied yest but jill is lying again as he lies on that day.

1789


Who developed c language?

637


What is the difference between typedef and #define?

544


Is this program statement valid? INT = 10.50;

686


Is c++ based on c?

650


Tell me about low level programming languages.

642


regarding pointers concept

1571


Why cant I open a file by its explicit path?

593


Q.1 write a program to create binary tree 1 to 16 numbers? Q.2 write a program to creat a binary search tree for the member that is given by user?

2054