I'm drunk, ask me C/C++/general programming questions

I'm drunk, ask me C/C++/general programming questions

why don't you use Assembly or Java like a real programmer

how do I git gud and becum a hacker
what are you drinking thats a better and more interesting question.

how does iostream interface with the command line

Is it true that I'll become a better programmer if I dress up in girly clothes?

How would you suggest someone start learning them?

Are you drinking by yourself? Why or why not?

Do you regret making this thread?

First interesting/eyeopening/personaly significant thing you did with programming?

What can you do with programming? It seems like it would be a fun hobby, but idk what you can even make with it.

I do use assembly, and java is garbage

Without Googling or looking at the stanard:
What does the static in
void my_fn(size_t n, int a[static n]) {
// ...
}
mean?

What does void my_fn(int a[restrict *]); mean?

How do you portably find the padding between two struct members?

microcurruption.com

Mikes hard b/c I'm a giant faggot

Too lazy to remember, I blame your parents.

yeah when I was in the Navy I'd slam a 12 pack of the cans when I got off duty to get fucked up really fast
good fucking times. Drinking some Sierra Nevada seasonal now...much better lol

>java like a real programmer

>How would you suggest someone start learning them?
If you have programming experience, dive in and start making something, if not, take a class or read a book.
>Are you drinking by yourself? Why or why not?
Yes, because my girlfriend isn't here and I'm lonely.
>Do you regret making this thread?
Not yet, but I have faith.
>First interesting/eyeopening/personaly significant thing you did with programming?
I made a really shitty calculator as a joke when I was younger. It was significant to me because I actually *understood* all the ways it was shitty. I think a lot can be learned from making something intentionally terrible

answer this pls

Games, robots, chatbots/webcrawlers, utilities to make interfacing with your computer easier, and fucking around with smart devices are all (semi) productive applications of programming that are immediately tangible to someone who is just getting started. And that's just based on my more gamedev/embedded viewpoint. I'm sure there other people can chime in with even more interesting things to do

Why is a null pointer so important, and what is it?

>inb4 Google

;>)

It's very useful in data structures. There's probably other reasons why it's important so you should probably google it.

The null pointer is guaranteed to not point to anything.
It has all sorts of uses as a sentinel value.

Is #pragma vectorize good enough to make most compilers (Gcc, clang and MSVC) use SSE extensions, or do I have to manually use compiler intrinsics?

Oh, it's the breed of dog, the kind with good guarding values but totally the opposite of the description that the breed is named after?

If you're trying to make a joke, you're not funny at all.