10 11 12 13 14 15 16 17 18 #include 4 5 char firstName [50]; 6 char genericLocation [50]; 7 int wholeNumber=0; 8 char pluralNoun[50]; 9 Check int main(void) { /* Type your code here. */ scanf("%s %s %d %s", firstName, generic Location, wholeNumber, pluralNoun); printf("%s went to %s to buy %d different types of %s.\n", firstName, generic Location, wholeNumber, pluralNoun); return 0; Syntax Error(s) __tester_.c: In function 'main': __tester___.c:12:18: error: format '%d' expects argument of type 'int *, but argument 4 has type 'int' [-Werror=format=] scanf("%s %s %d %s", firstName, generic Location, wholeNumber, pluralNoun); cc1: all warnings being treated as errors
10 11 12 13 14 15 16 17 18 #include 4 5 char firstName [50]; 6 char genericLocation [50]; 7 int wholeNumber=0; 8 char pluralNoun[50]; 9 Check int main(void) { /* Type your code here. */ scanf("%s %s %d %s", firstName, generic Location, wholeNumber, pluralNoun); printf("%s went to %s to buy %d different types of %s.\n", firstName, generic Location, wholeNumber, pluralNoun); return 0; Syntax Error(s) __tester_.c: In function 'main': __tester___.c:12:18: error: format '%d' expects argument of type 'int *, but argument 4 has type 'int' [-Werror=format=] scanf("%s %s %d %s", firstName, generic Location, wholeNumber, pluralNoun); cc1: all warnings being treated as errors
Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
Related questions
Question
i dont undrestand what i am doing wrong here
![1 #include <stdio.h>
2
3 int main(void)
4 {
5
6
7
8
9
10
11
12
13
14
15
16
17}
18
Check
char firstName [50];
char genericLocation [50];
int wholeNumber=0;
char pluralNoun[50];
/* Type your code here. */
scanf("%s %s %d %s", firstName, genericLocation, wholeNumber, pluralNoun);
printf("%s went to %s to buy %d different types of %s.\n", firstName, generic location, wholeNumber, pluralNoun);
return 0;
Syntax Error(s)
__tester.c: In function 'main':
__tester__.c:12:18: error: format '%d' expects argument of type 'int **, but argument 4 has type 'int' [-Werror=format=]
scanf("%s %s %d %s", firstName, generic Location, wholeNumber, pluralNoun);
cc1: all warnings being treated as errors](/v2/_next/image?url=https%3A%2F%2Fcontent.bartleby.com%2Fqna-images%2Fquestion%2Fa1d592a5-ec96-4b1d-bddf-23e27014debe%2F62fbb555-b129-4794-95d5-c46f6850fdb7%2Fko172ad_processed.png&w=3840&q=75)
Transcribed Image Text:1 #include <stdio.h>
2
3 int main(void)
4 {
5
6
7
8
9
10
11
12
13
14
15
16
17}
18
Check
char firstName [50];
char genericLocation [50];
int wholeNumber=0;
char pluralNoun[50];
/* Type your code here. */
scanf("%s %s %d %s", firstName, genericLocation, wholeNumber, pluralNoun);
printf("%s went to %s to buy %d different types of %s.\n", firstName, generic location, wholeNumber, pluralNoun);
return 0;
Syntax Error(s)
__tester.c: In function 'main':
__tester__.c:12:18: error: format '%d' expects argument of type 'int **, but argument 4 has type 'int' [-Werror=format=]
scanf("%s %s %d %s", firstName, generic Location, wholeNumber, pluralNoun);
cc1: all warnings being treated as errors
Expert Solution

Step 1
C-Language introduction:-
The programming language C is procedural. Dennis Ritchie created it first in the year 1972. The primary purpose of its development was as an operating system programming language. Low-level memory access, a limited number of keywords, and a clean style are the three primary characteristics of the C programming language, which make it ideal for system programmings like operating systems or compiler development.
Step by step
Solved in 4 steps with 1 images

Knowledge Booster
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.Recommended textbooks for you

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education

Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON

Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON

C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON

Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning

Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education