Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Code below is used for reference. 3) Short answer question: SPOLJE (a) int main() (b) int main() struct employee struct char name[25] : int age

Code below is used for reference.

image text in transcribed

image text in transcribed

3) Short answer question:

image text in transcribed

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 (" %s %d", e.name, age ); return 0; printf(" %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(" %d %d", var 1.p-> i, var2.p -> main( inti: for(i=0;ich, v -> i,v ->a); void g ( structs *v) printf(" %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

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image_2

Step: 3

blur-text-image_3

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

More Books

Students also viewed these Databases questions

Question

Why is the pituitary gland called the master gland?

Answered: 1 week ago