Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 5 additions & 4 deletions buggy.c
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
3. create a new branch on git
4. git push changed buggy.c
5. create pull request with your name and changes you made
6. Make Corrections and screenshots

*/

Expand All @@ -19,7 +20,7 @@ struct dog

void main()
{
struct (dog) thing1:
struct (dog) thing1; //changed to semicolon
struct dog thing2;

thing1.age = [5];
Expand All @@ -31,7 +32,7 @@ void main()
strcpy(thing2.name, "Buster");

printf("Name: %i\n",thing1.name );
printf("Age: %i\n",thing1.age):
printf("Age: %i\n",thing1.age); //Changed to semicolon
printf("Thing2 Name: %s\n,thing2.name);
printf("Thing2 Age %i\n',thing2.age);
}
printf("Thing2 Age %i\n",thing2.age); //corrected qoutations
}