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 is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }
What is boolean in c?
write a program for 4 4 3 3 3 3 2 2 2 2 2 2 1 1 1 1 1 1 1 1 0 0 0 0 0 0 0 0 0 1 1 1 1 1 1 1 1 2 2 2 2 2 2 3 3 3 3 4 4
Does c have class?
How can I convert a number to a string?
Predict the output or error(s) for the following: 25. main() { printf("%p",main); }
what is an inline function?
what is the advantage of using SEMAPHORES to ORDINARY VARIABLES???
How a string is stored in c?
What is the right type to use for boolean values in c? Is there a standard type?
What is a program?
Where are c variables stored in memory?