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: lets_count_the_sins 2011-04-17 21:11

>>37
"int main()"

This should be int main(void) or int main(int argc, char **argv)
Any ANSI C compiler with the warnings on would have told you this.

"v = malloc(sizeof(int) * 4);"

What if malloc fails? I can think of trivial example of when something like this could happen.

" printf("Element %d: ", i); "

Undefined behavior. Ie, there some are systems where you won't see the output until *after* the program exits.

" scanf("%d", &v[i]);"

You don't check scanf() for abritrary input.

Should I go on?

Cripes, have you ever actually take a programming class you stupid fucker? I bet now. Maybe you should just shut up, and do what you know best. Discussing jewish zionism.

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