Answered step by step
Verified Expert Solution
Link Copied!

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

image text in transcribed

image text in transcribed

{ 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

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

Step: 3

blur-text-image

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

Transactions On Large Scale Data And Knowledge Centered Systems Iv Special Issue On Database Systems For Biomedical Applications Lncs 6990

Authors: Abdelkader Hameurlain ,Josef Kung ,Roland Wagner ,Christian Bohm ,Johann Eder ,Claudia Plant

2011th Edition

3642237398, 978-3642237393

More Books

Students also viewed these Databases questions

Question

How did you feel about taking piano lessons as a child? (general)

Answered: 1 week ago