Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

HOW TO BECOME PROFICIENT IN C

Name: Anonymous 2011-04-15 17:42

So I claimed I was proficient in a number of languages on my resume, all of which I've barely used.

I think I can get away with some of it but I really think I need to know how to use C and Python well for the job. He said the job might require C# which is close enough to core C.

How do I become proficient with these languages in a week or so?

Name: Anonymous 2011-04-17 21:17

$ cat test.c
int main() { return 0; }
$ gcc test.c -ansi -pedantic -Wall -Werror -Wextra


butthurt much?>>39

Name: Anonymous 2011-04-17 21:17

>>39
wow, you actually told pretty much everything other than actual error. have you ever actually take a programming class?

Name: Anonymous 2011-04-17 21:21

>>42
Well, how the fuck else do you think I recognized the errors in that shit code you fucking fat jew?

Name: Anonymous 2011-04-17 21:29

>>39
Can you rewrite it appropriately?

Name: Anonymous 2011-04-17 22:02

>>43
I imagine your butt right now is bleeding from the raw asspain.
Confirmed for buttdevastated and analmutilated.
you also have rectal dysfunction

Name: Anonymous 2011-04-17 22:53

>>39 is a huge fag

Name: Anonymous 2011-04-17 23:03

If anyone can help me out I don't understand what "Undefined behavior. Ie, there some are systems where you won't see the output until *after* the program exits." means.

I'm kind of new at this. I did take a programming course but the class ended before getting to better programming habits.

Name: Anonymous 2011-04-17 23:11

>>47
do not listen to him. he was just pointing to stupid things while missing the obvious error.

use realloc instead of second malloc. you are malloc ing new memory and lose the old address (which gives a memory leak btw) this new address points to a new memory location which is filled with garbage. it does not contain old data.

Name: Anonymous 2011-04-17 23:18

>>48
Ok, I did end up getting the program to work but I am still curious about the errors that guy mentioned. I understand all the problems except for the one I quoted (though I also don't know how to fix the scanf problem.)

Name: Anonymous 2011-04-17 23:42

Basically it was just pointing out that i/o can be buffered. You need to use flush if you want to be sure it will actually be printed then and there.

Name: Anonymous 2011-04-17 23:53

>>48
And what happens if part of the memory is actually the CPU registers? Does it still have an address you bitch?

Name: Anonymous 2011-04-18 0:07

>>51

CPU =/= hard drive

Name: Anonymous 2011-04-18 0:39

>>52
Yes, but most modern computer use this concept called virtual memory. On top of that, most os's will fucking load the damn program into the cache before it executes it.

Name: Anonymous 2011-04-18 4:08

>>39
[quote]Undefined behavior. Ie, there some are systems where you won't see the output until *after* the program exits.[/quote]
Just use fflush(3) or setvbuf(3) if you're seriously worried about this.

>>49
[quote]I also don't know how to fix the scanf problem.[/quote]
scanf(3) returns the number of tokens which have been successfully scanned.  If this number doesn't match the number of tokens in your format string, you know have a problem.

Just read the man pages, it's all in there.

Name: Anonymous 2011-04-18 4:38

>>54
quotefail

Name: Anonymous 2011-04-18 4:47

>>51
Yes on the PDP-11

Name: Anonymous 2011-04-18 6:10

>>39
An undefined behaviour is a behaviour that's not defined. It could do anything, even rape you're anus.

Name: nambla_dot_org_rules_you 2011-04-18 11:41

>>57
Undefined behavior is sometimes known as a semantic error.

Name: Anonymous 2011-04-18 15:26

I refuse to read this thread.
However:
C# which is close enough to core C
You will never be hired by anyone, ever.  Not even for a non-programming job.

Name: Anonymous 2011-04-18 15:48

>>59
butthurt, fartist?

Name: Anonymous 2011-04-18 18:09

>>59
Are you KIDDING me? They're very close.

Name: Anonymous 2011-04-18 18:14

>>61

You forgot you're noko

Name: Anonymous 2011-04-18 18:16

test

Name: Anonymous 2011-04-18 18:20

test

Name: nambla_dot_org_rules_you 2011-04-18 18:51

>>61
Are you really this fucking dumb or are you just seeing if you can get a rise out of certain people on here?

Name: Anonymous 2011-04-18 18:58

dubs get

Name: Anonymous 2011-04-18 18:58

>>66

i lol'd

fukken nice

Name: Anonymous 2011-04-18 20:02

>>59
That's not what I said, faggot. That's what the recruiterbro said. The guy that is hired to find applicants. He also said C++ is really similar to C.

Name: Anonymous 2011-04-18 20:03

>>65, >>61 is a fartism detector.

Name: Anonymous 2011-04-21 23:12

dubz check 'em

Name: Anonymous 2011-04-21 23:19

OVER 20LBS OF C AND C++

Name: !89o8tyI8Nk 2011-04-23 0:42

gay nigger asses

Name: Anonymous 2011-04-26 7:29

Name: Anonymous 2011-04-26 8:05

Name: Anonymous 2011-04-26 8:12

Name: Anonymous 2011-04-26 8:17

Name: Anonymous 2011-04-26 8:23

Name: Anonymous 2011-04-26 8:28

Name: Anonymous 2011-04-26 8:33

Name: Anonymous 2011-04-26 8:38


Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List