Answered step by step
Verified Expert Solution
Question
1 Approved Answer
General requirement is to solve by hand and try to solve without using any compiler { 2.) Point out the errors, if any, in the
General requirement is to solve by hand and try to solve without using any compiler
{ 2.) Point out the errors, if any, in the following programs: (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; strcpy(e.name, "Hacker"); age = 25: printf (" %s %d", e.name, age); return 0; struct employee e = { "Hacker", "C" }; printf(" %s %d", e.name, e.language); return 0; (c) structs struct virus int i; 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; varl.i = 100; var2.i = 200; varl.p = &var2; var2.p = &varl; printf(" %d %d", varl.p ->i, var2.p -> main() int i; for(i=0;ich, v ->i, v ->a); void g (struct s *v) printf ("n%c %d %f", v.ch, v.i, v.a)Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started