Question: Language: C Problem: Function Definition With the given text file in the bottom right of the picture, how are the extra periods/full stops being stored

Language: C Problem: Function Definition

With the given text file in the bottom right of the picture, how are the extra periods/"full stops" being stored into the variable temp.... Does it have to do with the conditions in the while loop?

Language: C Problem: Function Definition With the given text file in the

92 93 uoid Read Data File(struct address t com) Valuc of Tenp: 111 Value of Tenp: 22 Value ot Tenp: 3 Value of Tenp: 44 95 96 97 98 FILE ptr file; char tenp151 int counter, i; ptr_file Fopen("CS222 Inet.txt", "; 190 1 01 1 02 1 03 1 94 1 05 1 96 alue of Tenp: plalle what is being stored in the structure section 1 111 section 2: 221 section 3: 32 section 4: 44 Alias nane: platte counter strcpy(tenp.) uhile (( tenp[counter]-getc(ptr-file)) '-... ts& temp[counter] t- EOF & terp[counter] . ? GI, terp[counter] ? . ") 197 1 58 1 99 110 counter1 if (i0) else if (i1) else if (i"?) el SP if (i-#3) :Summe 2k18 CS 222\Honeworks Homeworki> com.sec! atoi(tenp); com.sec2-atoi(tenp); com.seca-atoi(tenp); com.sechatoi(tenp); strepy(C0?.alias, tenp); 112 113 CS222 Inct.txt Notepad 115 116 118 119 120 121 122 123 12 125 126 127 File Edit Fomat Viw Help 111.22.3.44 platte 131.250.95.21 jet 172.66,7,88 wabash 111.22.5.66 green 131.250.4/,63 baker 0.0.9.9 none printf(i-dn", i); printf alue of Temp: ",temp); 129 130 131 132 133 printf("What is being stored in the structure: "); printf("section 1 dn".con.sec1) printf("section 2: dn.con.sec2) printf("section 3: dn".con.sec3) printf"sectiondn",con.sec) printf("Alias name: s ".con.alias) fclose(ptr_file) IMSERT 122,26-0 67%

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!