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



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

Answer / 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

More C Interview Questions

‘ C’ PROGRAME TO SHOW THE TYPE OF TRANGLE BY ACCEPTING IT’S LENGTH .

0 Answers  


what are the advantage of pointer variables? write a program to count the number of vowels and consonants in a given string

3 Answers  


using for loop sum 2 number of any 4 digit number in c language

0 Answers  


Explain what is the difference between far and near ?

0 Answers  


Why can't I perform arithmetic on a void* pointer?

0 Answers  


What does %c do in c?

0 Answers  


What is RAM memory? and What is ROM?Who designed one is temparary and another is permanent?why they designed like that?By using far pointer which type data(whether hexadecimal)we can access?

1 Answers   Excel,


which type of aspect you want from the student.

0 Answers   IBM, TCS,


write a programme that inputs a number by user and gives its multiplication table.

2 Answers  


Is c functional or procedural?

1 Answers  


What is actual argument?

0 Answers  


Write a C/C++ program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the maximum number of concurrent threads that the InnoDB plug-in can create.

0 Answers   IBM,


Categories