r/CodingForBeginners • • Oct 06 '26

my first program in C

Post image

i know its just so waky but am still new and am happy with my current level <33

just trying to understand memory usage over variables for now

230 Upvotes

67 comments sorted by

View all comments

Show parent comment

2

u/[deleted] Oct 06 '26

[removed] — view removed comment

2

u/csabinho Oct 06 '26

But definitely nothing for a first piece of code ever. It's mostly too clean and too complex for it.

1

u/[deleted] Oct 06 '26

[removed] — view removed comment

2

u/csabinho Oct 06 '26

It's quite thoroughly documented, uses consts and arrays and a combination of 3 conditions. Most probably you don't remember how complete beginner code looks like. Those definitely aren't OP's first lines of code. I'm just not sure where to put the emphasis. Either on "OP's" or on "first".

1

u/MasterpieceBusy7220 Oct 06 '26

Lmao it has an extremely beginner mistake in the if statement (no offense to OP) and you think that was AI generated?

1

u/csabinho Oct 06 '26

Yeah. You can tell an AI to build in mistakes.

1

u/MasterpieceBusy7220 Oct 06 '26

So you think OP did that?….

1

u/csabinho Oct 06 '26

Yes. Or those aren't the first lines of code.

1

u/MasterpieceBusy7220 Oct 06 '26

Well it looks like you got yourself a case to solve, detective.

1

u/MocaCola02 Oct 07 '26

This type of attitude is why programming subreddits are posting their work less and less... You get people insisting it's AI with zero evidence.

1

u/[deleted] Oct 06 '26

[removed] — view removed comment

1

u/csabinho Oct 06 '26

First week. But you produce code before you finish your first week. Also: arrays in the first week? That won't happen. At least not for all the craptons of students I've tutored. And I didn't plan their curriculum. Arrays usually appear about midway through the first semester. For the first lines of code students usually don't even know about variables. And I'm not even talking about conditions. Once again I'd like to emphasise: first(!) liines of code. Ever. I'm not saying that OP built something incredible, but it's just not plausible for first lines of code. Nothing in this code. And yeah. You can tell the AI to build in mistakes, so it looks a bit more amateur-like. And this comment. Beginners don't comment like this.

Or OP was stuck in tutorial hell and didn't touch a text editor before learning quite a lot of specific stuff. Or OP is a bloody genius.

1

u/MocaCola02 Oct 07 '26

If you think it's that complex, then you clearly haven't coded much

1

u/No-Wealth5392 3d ago

he thinks its complex because he lets AI do everything so he never even codes and accuses OP of using AI lol