subject

Suppose that the input stream stdin contains the (invalid) IP address: 298.173.41.142 Assuming that the variables A and B are declared as ints, which of the following code fragments will correctly read the second part of the IP address (173) into the variable B? a. scanf("%d", &A);
char ch = fgetc(stdin);
scanf("%d", &B);

b. scanf("%d %d", &A, &B);

c. scanf("%d.%d", &A, &B);

ansver
Answers: 1

Another question on Computers and Technology

question
Computers and Technology, 22.06.2019 12:00
Which of the following “invisible” marks represents an inserted tab?
Answers: 1
question
Computers and Technology, 22.06.2019 21:30
Elements such as fonts colors visual structure graphics and the interface of a web page should complement each other to ensure blank
Answers: 3
question
Computers and Technology, 23.06.2019 11:00
Describe three characteristics of at-risk drivers. a. b. c. describe three characteristics of safe drivers. a. b. c. describe three driver errors that could cause a collision. a. b. c. how will this information affect you as a driver now and in the future? (2-3 sentences)
Answers: 2
question
Computers and Technology, 24.06.2019 03:30
Explain the importance of html in web page designing in 20 sentences..
Answers: 1
You know the right answer?
Suppose that the input stream stdin contains the (invalid) IP address: 298.173.41.142 Assuming that...
Questions
question
Mathematics, 19.11.2020 19:20
question
English, 19.11.2020 19:20
question
Mathematics, 19.11.2020 19:20
question
Mathematics, 19.11.2020 19:20
Questions on the website: 13722361