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 table lookup in c?
When reallocating memory if any other pointers point into the same piece of memory do you have to readjust these other pointers or do they get readjusted automatically?
Explain void pointer?
Explain how can a program be made to print the name of a source file where an error occurs?
If errno contains a nonzero number, is there an error?
What is the incorrect operator form following list(== , <> , >= , <=) and what is the reason for the answer?
Is null always equal to 0(zero)?
Define Array of pointers.
What is a wrapper function in c?
Explain about C function prototype?
Differentiate between null and void pointers.
Find duplicates in a file containing 6 digit number (like uid) in O (n) time.
Explain what is page thrashing?
What is switch in c?
What is masking?