158k views
5 votes
In C, how would I make a program that gets the third integer of multiple lines/streams of integers using pointers and sscanf, and getline?

For example,

input:

1 2 3 4 5

3 4 5 6 7

8 9 4 3 4

out: 3, 5, 4

User Mallik
by
7.2k points

1 Answer

6 votes

Answer:

12345 34567 89434 out:3,5,4

User Moonhead
by
7.1k points