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
a program that can input number of records and can view it again the record
What is sizeof return in c?
How do you declare a variable that will hold string values?
write a program to find out prime number using sieve case?
What are # preprocessor operator in c?
what are bit fields? What is the use of bit fields in a structure declaration?
Write a C Program That Will Count The Number Of Even And Odd Integers In A Set using while loop
how we can make 3d venturing graphics on outer interface
What are the loops in c?
A collection of data with a given structure for excepting storing and providing on demand data for multiple users a) linked list b) datastructer c) database d) preprocessor
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
Why is c so important?
What are valid operations on pointers?
What is the difference between typedef and #define?
What are different types of variables in c?