Skip to content

Conversation

@Goodwitch68
Copy link
Owner

No description provided.

@Goodwitch68 Goodwitch68 requested a review from pjohn3 October 24, 2019 19:26
Copy link
Collaborator

@pjohn3 pjohn3 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nincs előttem a könyv, majd együtt menjünk végig rajta. Stílusra kommenteltem.

return 0;
}

//setbuf(stdout, NULL); No newline at end of file
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ezt töröld ki. Ki is van kommentelve, meg amúgy se lehetne itt.

void main()
{
printf ("Howdy, neighbor! This is my first C program.\n");
exit(0);
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

inkább return 0; az exit()-nek csak akkor van értelme, ha nem main()-ben vagy,

@Goodwitch68 Goodwitch68 requested a review from pjohn3 November 1, 2019 20:37
3:
4: main()
5: {
6: printf ("Howdy, neighbor! This is my first C program.\n");
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

printf után ne legyen space

int i;
int j;
printf("2. feladat\n");
for (i = 0, j = 1; i < 8; i++, j++)
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

akkor is legyen kinn a kapcsos zárójel a for loopnál, ha csak egy sorból áll a teste. Ugyanez igaz az if-re, a while-ra, stb. Vagy itt pont ez volt a feladat?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants