Why cann't whole array can be passed to function as value.
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 |
What does c mean?
How the c program is executed?
code for copying two strings with out strcpy() function.
Explain how can I manipulate strings of multibyte characters?
What is main return c?
Why dont c comments nest?
what is the difference between NULL & NUL keywords in C?
how can i get the output 54321 4321 321 21 1 in c programming........???? pls help......
What is the difference between i++ and i+1 ?(in terms of memory)
Describe static function with its usage?
to find the program of matrix multiplication using arrays
write a program in C that prompts the user for today's date,tomorrow's date and display the results.Use structures for today's date,tomorrow's date and an array to hold the days for each month of the year.