Can you pass an entire structure to functions?



Can you pass an entire structure to functions?..

Answer / Yogendra Singh

Yes, in C, you can pass an entire structure to a function as a parameter. You can do this by passing the structure variable name as an argument.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

plz answer.. a program that takes a string e.g. "345" and returns integer 345

4 Answers  


is it possible to create your own header files?

1 Answers  


Prove or disprove P!=NP.

5 Answers   Microsoft,


what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);

4 Answers   TCS,


What are the three constants used in c?

1 Answers  


define switch statement?

6 Answers   CTS,


main() { char *p1="Name"; char *p2; p2=(char *)malloc(20); while(*p2++=*p1++); printf("%s\n",p2); }

4 Answers   CitiGroup,


Why cant I open a file by its explicit path?

1 Answers  


Is c pass by value or reference?

1 Answers  


How do I declare a pointer to an array?

6 Answers   IBM,


What is header file in c?

1 Answers  


HOW TO SWAP TWO NOS IN ONE STEP?

16 Answers   Satyam,


Categories