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

any string of bits of length 'n' represents a unique non- negative integer between.............?

2 Answers  


plz let me know how to become a telecom protocol tester. thank you.

0 Answers  


Write a program to print fibonacci series without using recursion?

0 Answers  


Where does the name "C" come from, anyway?

0 Answers   Celstream,


what is a c-language.what is do.

4 Answers   HCL,






suppose there are five integers write a program to find larger among them without using if- else

2 Answers  


What is const keyword in c?

0 Answers  


Explain that why C is procedural?

0 Answers   Maveric, Verifone,


In c language can we compile a program without main() function?

0 Answers  


Write a program for the following series: 1*3*5-2*4*6+3*5*7-4*6*8+.................up to nterms

5 Answers   Convex Digital,


Is it possible to initialize a variable at the time it was declared?

0 Answers  


what is the difference between malloc() and calloc() function?

1 Answers  


Categories