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


Please Help Members By Posting Answers For Below Questions

What is class and object in c?

773


Why is #define used?

965


What are the keywords in c?

826


Explain what are the different file extensions involved when programming in c?

812


An integer that indentifies the position of a data item in a sequence of data items a) value b) number c) index d) all of the above

874






What is the difference between functions getch() and getche()?

791


What does %c mean in c?

814


Can we use visual studio for c?

733


in any language the sound structure of that language depends on its a) character set, input/output function, its control structures b) character set, library functions, input/output functions its control structures c) character set, library functions, control sturctures d) character set, operators, its control structures

886


How can I find out how much free space is available on disk?

801


What is sorting in c plus plus?

706


What is sizeof int in c?

786


Is there a way to compare two structure variables?

800


What is spaghetti programming?

840


What is static memory allocation? Explain

785