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
What are the benefits of c language?
Why c is called top down?
What is the size of enum in c?
What is the difference between array and structure in c?
program to find out date after adding 31 days to a date in the month of febraury also consider the leap year
What does d mean?
How to implement a packet in C
Explain what are the different file extensions involved when programming in c?
Why we use void main in c?
What is the ANSI C Standard?
What is wrong with this statement? Myname = 'robin';
Write a program of prime number using recursion.
What is the collection of communication lines and routers called?
Why does everyone say not to use scanf? What should I use instead?
Explain how can I prevent another program from modifying part of a file that I am modifying?