SlideShare a Scribd company logo
Write a C code that uses struct to create a user-defined type person with the following attributes:
char name [ int age double height double weight In your code declare a variable of type person
and initialize the attributes appropriately. Print your variable to the terminal using printf. A
suggested printout could be: John is 1.75mtall, aged 24 , and weighs 80kg Remember to #include
the necessary header files if they have not been included when you start a project in eclipse IDE.
There is nothing to submit for this task. But the skill will be needed later.

More Related Content

PDF
Write a Fortran program to SOS take the name and ID number.pdf
PDF
Write a function that will take four parameters omega x0.pdf
PDF
Write a function that will take four parameters omega p.pdf
PDF
Write a generalpurpose program with loop and indexed addres.pdf
PDF
Write a computer program in JAVA that hides a secret message.pdf
PDF
Write a Fortran program to 1 take the name and ID number of.pdf
PDF
Write a function called ApologyLine that take an integer c a.pdf
PDF
Write a C++ code that makes pyramid shape as long as user wa.pdf
Write a Fortran program to SOS take the name and ID number.pdf
Write a function that will take four parameters omega x0.pdf
Write a function that will take four parameters omega p.pdf
Write a generalpurpose program with loop and indexed addres.pdf
Write a computer program in JAVA that hides a secret message.pdf
Write a Fortran program to 1 take the name and ID number of.pdf
Write a function called ApologyLine that take an integer c a.pdf
Write a C++ code that makes pyramid shape as long as user wa.pdf

More from advancesystem (20)

PDF
Write a class called Window that contains the following info.pdf
PDF
Write a 12 page report on igneous rock and how they are m.pdf
PDF
WQ4 Coevolution of Central American ants in the Pseudomyrme.pdf
PDF
With the following companies Apple Caterpillar Consolidat.pdf
PDF
Would the current answer be considered correct 2 Identify .pdf
PDF
WQ3 Considering that you know about natural selection is o.pdf
PDF
would be earned How much of the total is simple interest an.pdf
PDF
write 350400 WORDS AND EXPLAIN BRIEFLY lapter 7 How Touris.pdf
PDF
World vegetation maps and world climate maps are very simila.pdf
PDF
Working with Dictionaries and ListsSets Modules you can use.pdf
PDF
Working individually or in pairs you will apply what you ha.pdf
PDF
Without using a function write the JavaScript code so that w.pdf
PDF
with thefour approches to Internation human resource managem.pdf
PDF
Why did the marine trophic index continue to decline after t.pdf
PDF
With regard to the Pacific the phrase tyranny of distance.pdf
PDF
With or without Dox the amount of virus stays the same Does.pdf
PDF
Wildhorse Co had the following assets on January 12025 Du.pdf
PDF
With respect to the shoulder latissimus dorsi is a twojoin.pdf
PDF
Why should organizations be interested in ISO 20400 What ar.pdf
PDF
Why is Human Capital Management important in an organization.pdf
Write a class called Window that contains the following info.pdf
Write a 12 page report on igneous rock and how they are m.pdf
WQ4 Coevolution of Central American ants in the Pseudomyrme.pdf
With the following companies Apple Caterpillar Consolidat.pdf
Would the current answer be considered correct 2 Identify .pdf
WQ3 Considering that you know about natural selection is o.pdf
would be earned How much of the total is simple interest an.pdf
write 350400 WORDS AND EXPLAIN BRIEFLY lapter 7 How Touris.pdf
World vegetation maps and world climate maps are very simila.pdf
Working with Dictionaries and ListsSets Modules you can use.pdf
Working individually or in pairs you will apply what you ha.pdf
Without using a function write the JavaScript code so that w.pdf
with thefour approches to Internation human resource managem.pdf
Why did the marine trophic index continue to decline after t.pdf
With regard to the Pacific the phrase tyranny of distance.pdf
With or without Dox the amount of virus stays the same Does.pdf
Wildhorse Co had the following assets on January 12025 Du.pdf
With respect to the shoulder latissimus dorsi is a twojoin.pdf
Why should organizations be interested in ISO 20400 What ar.pdf
Why is Human Capital Management important in an organization.pdf
Ad

Recently uploaded (20)

PDF
Chinmaya Tiranga quiz Grand Finale.pdf
PDF
STATICS OF THE RIGID BODIES Hibbelers.pdf
PPTX
Presentation on HIE in infants and its manifestations
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
PPTX
Institutional Correction lecture only . . .
PPTX
Cell Types and Its function , kingdom of life
PDF
102 student loan defaulters named and shamed – Is someone you know on the list?
PDF
O5-L3 Freight Transport Ops (International) V1.pdf
PDF
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
PDF
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
PPTX
GDM (1) (1).pptx small presentation for students
PPTX
Lesson notes of climatology university.
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PPTX
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
PDF
Complications of Minimal Access Surgery at WLH
Chinmaya Tiranga quiz Grand Finale.pdf
STATICS OF THE RIGID BODIES Hibbelers.pdf
Presentation on HIE in infants and its manifestations
Microbial disease of the cardiovascular and lymphatic systems
Final Presentation General Medicine 03-08-2024.pptx
GENETICS IN BIOLOGY IN SECONDARY LEVEL FORM 3
Institutional Correction lecture only . . .
Cell Types and Its function , kingdom of life
102 student loan defaulters named and shamed – Is someone you know on the list?
O5-L3 Freight Transport Ops (International) V1.pdf
OBE - B.A.(HON'S) IN INTERIOR ARCHITECTURE -Ar.MOHIUDDIN.pdf
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPT- ENG7_QUARTER1_LESSON1_WEEK1. IMAGERY -DESCRIPTIONS pptx.pptx
ANTIBIOTICS.pptx.pdf………………… xxxxxxxxxxxxx
GDM (1) (1).pptx small presentation for students
Lesson notes of climatology university.
Final Presentation General Medicine 03-08-2024.pptx
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
IMMUNITY IMMUNITY refers to protection against infection, and the immune syst...
Complications of Minimal Access Surgery at WLH
Ad

Write a C code that uses struct to create a userdefined typ.pdf

  • 1. Write a C code that uses struct to create a user-defined type person with the following attributes: char name [ int age double height double weight In your code declare a variable of type person and initialize the attributes appropriately. Print your variable to the terminal using printf. A suggested printout could be: John is 1.75mtall, aged 24 , and weighs 80kg Remember to #include the necessary header files if they have not been included when you start a project in eclipse IDE. There is nothing to submit for this task. But the skill will be needed later.