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 general form of function in c?
Write a program to compute the similarity between two strings - The program should get the two strings as input - Then it will output one single number which is the percentage of similarity between the two strings
how do you programme Carrier Sense Multiple Access
the 'sizeof' operator reported a larger size than the calculated size for a structure type. What could be the reason?
What are the preprocessor categories?
my project name is adulteration of chille powder.how can i explain it to the hr when he asks me about the project?
c language interview questions & answer
Should a function contain a return statement if it does not return a value?
What are register variables? What are the advantage of using register variables?
What are variables c?
What are the header files used in c language?
How can type-insensitive macros be created?
What is the use of structure padding in c?
Which is best linux os?
What is meant by errors and debugging?