Question: Rewrite the following code fragment using a structure to replace the set of char arrays and Jong number, while correcting one error in the scanf

 Rewrite the following code fragment using a structure to replace the

Rewrite the following code fragment using a structure to replace the set of char arrays and Jong number, while correcting one error in the scanf statement. #include // function main begins program execution int main(void) char name[50]: char street[100): char city[50]: char state 2013 long postcode: printf("Enter a name:"); scanf("%[^n%c", name): printf("Enter a house number:"); scanf"%d",&housenumber): printf("Enter a street :) scanf("[ ]%c".street): printf"Enter a city:"); scanf("%[ ]%c", city) printfinEnter a state:"); scanf%[n]%c", state): printf("Enter a postcode: "); scanf("%d",&postcode) printf"The address of %s is at %d9%ld %%s ". name.housenumber street postcode.city,state); return 0

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!