Menu

Spolje Int Main B Int Main Struct Employee Struct Char Name 25 Int Age Float Bs Char Name Q43887671

Code below is used for reference.

SPOLJE (a) int main() (b) int main() struct employee struct char name[25] : int age : float bs; char name[25] ; char language

(c) (d) structs struct virus inti structs *p; int main() char signature[25] char status[20] int size; v[2] = { Yankee Doodle

3) Short answer question:

d). A structure variable is passed by value or reference to a function? Experiment with the relevant output tracing code show

SPOLJE (a) int main() (b) int main() struct employee struct char name[25] : int age : float bs; char name[25] ; char language[10] struct employee e = { “Hacker”, struct employee e ; strcpy(e.name, “Hacker”): age = 25; printf (“n%s %d”, e.name, age ); return 0; printf(“n%s %d”, e name, e.language ) return 0; (c) (d) structs struct virus inti structs *p; int main() char signature[25] char status[20] int size; v[2] = { “Yankee Doodle”, “Deadly”, 1813, “Dark Avenger”, “Killer”, 1795 struct s varl, var2 varli 100 var2i = 200 varl.p = &var2 var2.p = &varl printf(“n%d %d”, var 1.p-> i, var2.p -> main( inti: for(i=0;i<=1;i++) printf(“n%s %s”, v.signature, v.status); return 0; (e) structs char ch ; inti; float a: int main struct s var = { ‘C’, 100, 12.55); f(var); g ( &var); return 0; void f ( struct sv) printf(“n%c %d %f”, v->ch, v -> i,v ->a); void g ( structs *v) printf(“n%c %d %f”, v.ch, v.i, v.a d). A structure variable is passed by value or reference to a function? Experiment with the relevant output tracing code shown above as an example! e) A structure array is passed by value or reference to a function? Experiment with the relevant output tracing code shown above as an example! Show transcribed image text SPOLJE (a) int main() (b) int main() struct employee struct char name[25] : int age : float bs; char name[25] ; char language[10] struct employee e = { “Hacker”, struct employee e ; strcpy(e.name, “Hacker”): age = 25; printf (“n%s %d”, e.name, age ); return 0; printf(“n%s %d”, e name, e.language ) return 0;
(c) (d) structs struct virus inti structs *p; int main() char signature[25] char status[20] int size; v[2] = { “Yankee Doodle”, “Deadly”, 1813, “Dark Avenger”, “Killer”, 1795 struct s varl, var2 varli 100 var2i = 200 varl.p = &var2 var2.p = &varl printf(“n%d %d”, var 1.p-> i, var2.p -> main( inti: for(i=0;ich, v -> i,v ->a); void g ( structs *v) printf(“n%c %d %f”, v.ch, v.i, v.a
d). A structure variable is passed by value or reference to a function? Experiment with the relevant output tracing code shown above as an example! e) A structure array is passed by value or reference to a function? Experiment with the relevant output tracing code shown above as an example!

Expert Answer


Answer to Code below is used for reference. 3) Short answer question: …

OR