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 is the difference between void main and main in c?
An organised method of depicting the use of an area of computer memory used to signify the uses for different parts of the memory a) swap b) extended memory c) memory map d) all of the above
Can a function be forced to be inline? Also, give a comparison between inline function and the C macro?
What are the advantages of using macro in c language?
When would you use a pointer to a function?
How to compare array with pointer in c?
How do we print only part of a string in c?
What are the advantages and disadvantages of pointers?
Can you mix old-style and new-style function syntax?
What are different storage class specifiers in c?
Explain what are linked list?
How to write a program for machine which is connected with server for that server automatically wants to catch the time for user of that machine?
What is %lu in c?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
How can you call a function, given its name as a string?