//Q18: What does the "%[^\n]s" in scanf_s do? scanf_s("%[^\n]s", provider.name, MAX_STR); provider.patient[0] = {"Taylor Swift", 123456, 1.8, 53.9, 0, "\0", 0); determine WeightCategory(&provider.patient[0]); calculateBMI(&provider.patient[0]); provider.patient[1] = {"Arnold Schwarznegger", 789456, 1.88, 107, 0, "\0", 1}; calculateBMI(&provider.patient[1]); determineWeightCategory(&provider.patient[1]);

Np Ms Office 365/Excel 2016 I Ntermed
1st Edition
ISBN:9781337508841
Author:Carey
Publisher:Carey
Chapter3: Performing Calculations With Formulas And Functions
Section: Chapter Questions
Problem 3.10CP
icon
Related questions
Question
printf("Enter the name of the health care provider: ");
//Q18: What does the "%[^\n]s" in scanf_s do?
scanf_s("%[^\n]s", provider.name, MAX_STR);
provider.patient[0] = {"Taylor Swift", 123456, 1.8, 53.9, 0, "10", 0);
determineWeightCategory(&provider.patient[0]);
calculateBMI(&provider.patient[0]);
provider.patient[1] = {"Arnold Schwarznegger", 789456, 1.88, 107, 0, "\0", 1};
calculateBMI(&provider.patient[1]);
determineWeightCategory(&provider.patient[1]);
Transcribed Image Text:printf("Enter the name of the health care provider: "); //Q18: What does the "%[^\n]s" in scanf_s do? scanf_s("%[^\n]s", provider.name, MAX_STR); provider.patient[0] = {"Taylor Swift", 123456, 1.8, 53.9, 0, "10", 0); determineWeightCategory(&provider.patient[0]); calculateBMI(&provider.patient[0]); provider.patient[1] = {"Arnold Schwarznegger", 789456, 1.88, 107, 0, "\0", 1}; calculateBMI(&provider.patient[1]); determineWeightCategory(&provider.patient[1]);
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Knowledge Booster
Hash Table
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Np Ms Office 365/Excel 2016 I Ntermed
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage