Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
Wait, correct me if I'm wrong, but shouldn't your array size only be 11, including the new line and null terminator? Because \n is one character, right?
That's why you don't specify the size in that case, and let the compiler count for you 🙂 -
I feel compelled to say that it's considered good practice to declare your main function as:
int main(int argc, char *argv[]) {}
But C and C++ are the main languages that I develop in. :) -
@firefish No. On windows you can shutdown without having admin access. I tried this multible times, as i have written the same program.
-
@vortexman100 you're right. You need root password in Linux for shutdown so I thought it would be the same in Windows. But this is pure evil.
-
If u can, use linux for c/c++... Clion isnt something i'd recommend to start with... It's jst overkill for beginning imo...
And on linux, c/c++ is so much more fun 😁
Related Rants
-
xjose97x19Just saw a variable in C named like this: long time_ago; //in a galaxy far away I laughed no stop.
-
tommy15Right now someone at Google is coding something useless for us to laugh at on April Fools.
-
elgringo41Student - Teacher renaming .c to .exe make the program executable ? Teacher - Yes A group of people stand up...
Just started to dive in to C. Lots of fun. This is my first creation. I'll have some friends to test it for me... >:)
undefined
fun
dick
beginner
noob
c