SlideShare a Scribd company logo
1 of 1
Download to read offline
Print person details Now create a function print_person, which prints the details provided in the
following format: Person's name: <name> First letter of person's name: <first character of person's
name> Person's age in hexadecimal: <person's age> Remember that a string can be treated as
an array of characters.
#include <stdio.h>
/*
** Prints the given personal details of a person.
*/
void print_person(char* name, int age) {
// Enter your print statement(s) here
}
int main(void) {
print_person("John", 21);
print_person("Alice", 0);
return 0;
}

More Related Content

More from adhavanmobiles2011

Pregunta 3 Caractersticas distintivas de las plantas Qu.pdf
Pregunta 3 Caractersticas distintivas de las plantas Qu.pdfPregunta 3 Caractersticas distintivas de las plantas Qu.pdf
Pregunta 3 Caractersticas distintivas de las plantas Qu.pdfadhavanmobiles2011
 
PREGUNTA 26 La fuerza del campo de las relaciones pblicas .pdf
PREGUNTA 26  La fuerza del campo de las relaciones pblicas .pdfPREGUNTA 26  La fuerza del campo de las relaciones pblicas .pdf
PREGUNTA 26 La fuerza del campo de las relaciones pblicas .pdfadhavanmobiles2011
 
Pregunta Haga coincidir el contenido de los siguientes ejem.pdf
Pregunta Haga coincidir el contenido de los siguientes ejem.pdfPregunta Haga coincidir el contenido de los siguientes ejem.pdf
Pregunta Haga coincidir el contenido de los siguientes ejem.pdfadhavanmobiles2011
 
Pregunta En el rea de asistencia administrativa la SBA de.pdf
Pregunta En el rea de asistencia administrativa la SBA de.pdfPregunta En el rea de asistencia administrativa la SBA de.pdf
Pregunta En el rea de asistencia administrativa la SBA de.pdfadhavanmobiles2011
 
Principled Negotiation by Fisher and Urey is perhaps the.pdf
Principled Negotiation by Fisher and Urey is perhaps the.pdfPrincipled Negotiation by Fisher and Urey is perhaps the.pdf
Principled Negotiation by Fisher and Urey is perhaps the.pdfadhavanmobiles2011
 
Print a possible output of the MPI code below assuming runn.pdf
Print a possible output of the MPI code below assuming runn.pdfPrint a possible output of the MPI code below assuming runn.pdf
Print a possible output of the MPI code below assuming runn.pdfadhavanmobiles2011
 
Preguntas de discusin sobre el caso 2 7Eleven Caso 2 7.pdf
Preguntas de discusin sobre el caso 2 7Eleven   Caso 2 7.pdfPreguntas de discusin sobre el caso 2 7Eleven   Caso 2 7.pdf
Preguntas de discusin sobre el caso 2 7Eleven Caso 2 7.pdfadhavanmobiles2011
 
PREGUNTA 4 La contaminacin indeseable e involuntaria del m.pdf
PREGUNTA 4  La contaminacin indeseable e involuntaria del m.pdfPREGUNTA 4  La contaminacin indeseable e involuntaria del m.pdf
PREGUNTA 4 La contaminacin indeseable e involuntaria del m.pdfadhavanmobiles2011
 
Problem 1 Create a function translate Sz that translates.pdf
Problem 1 Create a function translate Sz that translates.pdfProblem 1 Create a function translate Sz that translates.pdf
Problem 1 Create a function translate Sz that translates.pdfadhavanmobiles2011
 
Problem 1 Consider an Mary hypothesis decision problem bas.pdf
Problem 1 Consider an Mary hypothesis decision problem bas.pdfProblem 1 Consider an Mary hypothesis decision problem bas.pdf
Problem 1 Consider an Mary hypothesis decision problem bas.pdfadhavanmobiles2011
 
Principles refer to sets of uncompromising truths that prov.pdf
Principles refer to sets of uncompromising truths that prov.pdfPrinciples refer to sets of uncompromising truths that prov.pdf
Principles refer to sets of uncompromising truths that prov.pdfadhavanmobiles2011
 
Problem 1 Art as an Investment In 1990 Mrs Hayes sold her.pdf
Problem 1 Art as an Investment In 1990 Mrs Hayes sold her.pdfProblem 1 Art as an Investment In 1990 Mrs Hayes sold her.pdf
Problem 1 Art as an Investment In 1990 Mrs Hayes sold her.pdfadhavanmobiles2011
 
Problem 1 Base Realignment and Closure Commission BRAC To.pdf
Problem 1 Base Realignment and Closure Commission BRAC To.pdfProblem 1 Base Realignment and Closure Commission BRAC To.pdf
Problem 1 Base Realignment and Closure Commission BRAC To.pdfadhavanmobiles2011
 
Problem 1 Category Design+Proof Let L be the language co.pdf
Problem 1 Category Design+Proof Let L be the language co.pdfProblem 1 Category Design+Proof Let L be the language co.pdf
Problem 1 Category Design+Proof Let L be the language co.pdfadhavanmobiles2011
 
Pregunta 3 Cul es el formato correcto para un artculo ll.pdf
Pregunta 3  Cul es el formato correcto para un artculo ll.pdfPregunta 3  Cul es el formato correcto para un artculo ll.pdf
Pregunta 3 Cul es el formato correcto para un artculo ll.pdfadhavanmobiles2011
 
preguntas contables Verdadero FALSO 2 Identificar l.pdf
preguntas contables   Verdadero   FALSO  2 Identificar l.pdfpreguntas contables   Verdadero   FALSO  2 Identificar l.pdf
preguntas contables Verdadero FALSO 2 Identificar l.pdfadhavanmobiles2011
 
Problem 1 A discrete random variable X has probability mass.pdf
Problem 1 A discrete random variable X has probability mass.pdfProblem 1 A discrete random variable X has probability mass.pdf
Problem 1 A discrete random variable X has probability mass.pdfadhavanmobiles2011
 
Problem 6 An observational study of Alzheimers d ease A.pdf
Problem  6 An observational study of Alzheimers d ease A.pdfProblem  6 An observational study of Alzheimers d ease A.pdf
Problem 6 An observational study of Alzheimers d ease A.pdfadhavanmobiles2011
 
Prob 4 10 pts A 2m deep soil profile is comprised of two.pdf
Prob 4 10 pts A 2m deep soil profile is comprised of two.pdfProb 4 10 pts A 2m deep soil profile is comprised of two.pdf
Prob 4 10 pts A 2m deep soil profile is comprised of two.pdfadhavanmobiles2011
 
Prob 8 10 pts A rainstorm of intensity R05cmh1 began.pdf
Prob 8 10 pts A rainstorm of intensity R05cmh1 began.pdfProb 8 10 pts A rainstorm of intensity R05cmh1 began.pdf
Prob 8 10 pts A rainstorm of intensity R05cmh1 began.pdfadhavanmobiles2011
 

More from adhavanmobiles2011 (20)

Pregunta 3 Caractersticas distintivas de las plantas Qu.pdf
Pregunta 3 Caractersticas distintivas de las plantas Qu.pdfPregunta 3 Caractersticas distintivas de las plantas Qu.pdf
Pregunta 3 Caractersticas distintivas de las plantas Qu.pdf
 
PREGUNTA 26 La fuerza del campo de las relaciones pblicas .pdf
PREGUNTA 26  La fuerza del campo de las relaciones pblicas .pdfPREGUNTA 26  La fuerza del campo de las relaciones pblicas .pdf
PREGUNTA 26 La fuerza del campo de las relaciones pblicas .pdf
 
Pregunta Haga coincidir el contenido de los siguientes ejem.pdf
Pregunta Haga coincidir el contenido de los siguientes ejem.pdfPregunta Haga coincidir el contenido de los siguientes ejem.pdf
Pregunta Haga coincidir el contenido de los siguientes ejem.pdf
 
Pregunta En el rea de asistencia administrativa la SBA de.pdf
Pregunta En el rea de asistencia administrativa la SBA de.pdfPregunta En el rea de asistencia administrativa la SBA de.pdf
Pregunta En el rea de asistencia administrativa la SBA de.pdf
 
Principled Negotiation by Fisher and Urey is perhaps the.pdf
Principled Negotiation by Fisher and Urey is perhaps the.pdfPrincipled Negotiation by Fisher and Urey is perhaps the.pdf
Principled Negotiation by Fisher and Urey is perhaps the.pdf
 
Print a possible output of the MPI code below assuming runn.pdf
Print a possible output of the MPI code below assuming runn.pdfPrint a possible output of the MPI code below assuming runn.pdf
Print a possible output of the MPI code below assuming runn.pdf
 
Preguntas de discusin sobre el caso 2 7Eleven Caso 2 7.pdf
Preguntas de discusin sobre el caso 2 7Eleven   Caso 2 7.pdfPreguntas de discusin sobre el caso 2 7Eleven   Caso 2 7.pdf
Preguntas de discusin sobre el caso 2 7Eleven Caso 2 7.pdf
 
PREGUNTA 4 La contaminacin indeseable e involuntaria del m.pdf
PREGUNTA 4  La contaminacin indeseable e involuntaria del m.pdfPREGUNTA 4  La contaminacin indeseable e involuntaria del m.pdf
PREGUNTA 4 La contaminacin indeseable e involuntaria del m.pdf
 
Problem 1 Create a function translate Sz that translates.pdf
Problem 1 Create a function translate Sz that translates.pdfProblem 1 Create a function translate Sz that translates.pdf
Problem 1 Create a function translate Sz that translates.pdf
 
Problem 1 Consider an Mary hypothesis decision problem bas.pdf
Problem 1 Consider an Mary hypothesis decision problem bas.pdfProblem 1 Consider an Mary hypothesis decision problem bas.pdf
Problem 1 Consider an Mary hypothesis decision problem bas.pdf
 
Principles refer to sets of uncompromising truths that prov.pdf
Principles refer to sets of uncompromising truths that prov.pdfPrinciples refer to sets of uncompromising truths that prov.pdf
Principles refer to sets of uncompromising truths that prov.pdf
 
Problem 1 Art as an Investment In 1990 Mrs Hayes sold her.pdf
Problem 1 Art as an Investment In 1990 Mrs Hayes sold her.pdfProblem 1 Art as an Investment In 1990 Mrs Hayes sold her.pdf
Problem 1 Art as an Investment In 1990 Mrs Hayes sold her.pdf
 
Problem 1 Base Realignment and Closure Commission BRAC To.pdf
Problem 1 Base Realignment and Closure Commission BRAC To.pdfProblem 1 Base Realignment and Closure Commission BRAC To.pdf
Problem 1 Base Realignment and Closure Commission BRAC To.pdf
 
Problem 1 Category Design+Proof Let L be the language co.pdf
Problem 1 Category Design+Proof Let L be the language co.pdfProblem 1 Category Design+Proof Let L be the language co.pdf
Problem 1 Category Design+Proof Let L be the language co.pdf
 
Pregunta 3 Cul es el formato correcto para un artculo ll.pdf
Pregunta 3  Cul es el formato correcto para un artculo ll.pdfPregunta 3  Cul es el formato correcto para un artculo ll.pdf
Pregunta 3 Cul es el formato correcto para un artculo ll.pdf
 
preguntas contables Verdadero FALSO 2 Identificar l.pdf
preguntas contables   Verdadero   FALSO  2 Identificar l.pdfpreguntas contables   Verdadero   FALSO  2 Identificar l.pdf
preguntas contables Verdadero FALSO 2 Identificar l.pdf
 
Problem 1 A discrete random variable X has probability mass.pdf
Problem 1 A discrete random variable X has probability mass.pdfProblem 1 A discrete random variable X has probability mass.pdf
Problem 1 A discrete random variable X has probability mass.pdf
 
Problem 6 An observational study of Alzheimers d ease A.pdf
Problem  6 An observational study of Alzheimers d ease A.pdfProblem  6 An observational study of Alzheimers d ease A.pdf
Problem 6 An observational study of Alzheimers d ease A.pdf
 
Prob 4 10 pts A 2m deep soil profile is comprised of two.pdf
Prob 4 10 pts A 2m deep soil profile is comprised of two.pdfProb 4 10 pts A 2m deep soil profile is comprised of two.pdf
Prob 4 10 pts A 2m deep soil profile is comprised of two.pdf
 
Prob 8 10 pts A rainstorm of intensity R05cmh1 began.pdf
Prob 8 10 pts A rainstorm of intensity R05cmh1 began.pdfProb 8 10 pts A rainstorm of intensity R05cmh1 began.pdf
Prob 8 10 pts A rainstorm of intensity R05cmh1 began.pdf
 

Recently uploaded

FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfPondicherry University
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital ManagementMBA Assignment Experts
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...EduSkills OECD
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismDabee Kamal
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnershipsexpandedwebsite
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...EADTU
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................MirzaAbrarBaig5
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMELOISARIVERA8
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSAnaAcapella
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSean M. Fox
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaEADTU
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...Nguyen Thanh Tu Collection
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17Celine George
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....Ritu480198
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxAdelaideRefugio
 

Recently uploaded (20)

FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdfFICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
FICTIONAL SALESMAN/SALESMAN SNSW 2024.pdf
 
8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management8 Tips for Effective Working Capital Management
8 Tips for Effective Working Capital Management
 
Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...Andreas Schleicher presents at the launch of What does child empowerment mean...
Andreas Schleicher presents at the launch of What does child empowerment mean...
 
An overview of the various scriptures in Hinduism
An overview of the various scriptures in HinduismAn overview of the various scriptures in Hinduism
An overview of the various scriptures in Hinduism
 
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community PartnershipsSpring gala 2024 photo slideshow - Celebrating School-Community Partnerships
Spring gala 2024 photo slideshow - Celebrating School-Community Partnerships
 
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
Transparency, Recognition and the role of eSealing - Ildiko Mazar and Koen No...
 
OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...OS-operating systems- ch05 (CPU Scheduling) ...
OS-operating systems- ch05 (CPU Scheduling) ...
 
male presentation...pdf.................
male presentation...pdf.................male presentation...pdf.................
male presentation...pdf.................
 
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUMDEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
DEMONSTRATION LESSON IN ENGLISH 4 MATATAG CURRICULUM
 
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPSSpellings Wk 4 and Wk 5 for Grade 4 at CAPS
Spellings Wk 4 and Wk 5 for Grade 4 at CAPS
 
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading RoomSternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
Sternal Fractures & Dislocations - EMGuidewire Radiology Reading Room
 
Supporting Newcomer Multilingual Learners
Supporting Newcomer  Multilingual LearnersSupporting Newcomer  Multilingual Learners
Supporting Newcomer Multilingual Learners
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes GuàrdiaPersonalisation of Education by AI and Big Data - Lourdes Guàrdia
Personalisation of Education by AI and Big Data - Lourdes Guàrdia
 
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
TỔNG HỢP HƠN 100 ĐỀ THI THỬ TỐT NGHIỆP THPT TOÁN 2024 - TỪ CÁC TRƯỜNG, TRƯỜNG...
 
How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17How to Send Pro Forma Invoice to Your Customers in Odoo 17
How to Send Pro Forma Invoice to Your Customers in Odoo 17
 
diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....diagnosting testing bsc 2nd sem.pptx....
diagnosting testing bsc 2nd sem.pptx....
 
Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"Mattingly "AI and Prompt Design: LLMs with NER"
Mattingly "AI and Prompt Design: LLMs with NER"
 
VAMOS CUIDAR DO NOSSO PLANETA! .
VAMOS CUIDAR DO NOSSO PLANETA!                    .VAMOS CUIDAR DO NOSSO PLANETA!                    .
VAMOS CUIDAR DO NOSSO PLANETA! .
 
Observing-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptxObserving-Correct-Grammar-in-Making-Definitions.pptx
Observing-Correct-Grammar-in-Making-Definitions.pptx
 

Print person details Now create a function print_person whi.pdf

  • 1. Print person details Now create a function print_person, which prints the details provided in the following format: Person's name: <name> First letter of person's name: <first character of person's name> Person's age in hexadecimal: <person's age> Remember that a string can be treated as an array of characters. #include <stdio.h> /* ** Prints the given personal details of a person. */ void print_person(char* name, int age) { // Enter your print statement(s) here } int main(void) { print_person("John", 21); print_person("Alice", 0); return 0; }