Kenny
Does the fork die when the parent does?
i remember that childs must die first and then the parent
Dima
😹😹
Kenny
I got scared at first
Hahahaha i saw a meme about these
Anonymous
/warn
Md
/programming
vinícius*
well, usually parents don't do exec*() 🤔
vinícius*
if you exec'ed in the parent process, the parent process would have been taken over by the new exec'd process
valerie
i really need help with my assignment, to check for errors, can anyone help me
Indolent
https://hastebin.com/ariloxogem.php When I run this code it goes into an infinite loop. Can anyone tell me what's wrong? The correct output should be 4, 9, 2, 1, 6, 3, 7 Can anyone make some changes so that it gives the output mentioned above? Thank you.
Indolent
NOTE: In the required output commas are not necessary.
Anonymous
/warn
/warn
Anonymous
/warn voice message and non English
Anonymous
Ok
Anonymous
i think rose does'nt have anything great to do so she is playing with other's feeling lol
ʟᴏɴᴇᴡᴏʟꜰ
😂
Anonymous
enum week{sunday = 1, monday, tuesday, wednesday, thursday, friday, saturday}; enum week day = monday; I have two questions : 1. Is there any use of "week" after the enumerator has been defined (other than creating an enumeration variable)? 2. What is the use of creating the enumeration variable "day" instead of using an integer variable like : int day = monday;
Anonymous
actually enum mostly used in Object Orinted programe enum is just for support to Object Orientation
Serenity
Can somebody explain to me a little about the process of generating random numbers in C ?
Serenity
I've learnt the syntax but it's hard to memorize since I don't understand the logic behind it.
Serenity
int num = (rand () % (upper_bound-lower_bound-1))+lower
Anonymous
don't memorize it the more you write programe the more you'll remember it
Serenity
Is that the correct way to do that ?
Serenity
And using srand(time(NULL)) before
Anonymous
int num = (rand () % (upper_bound-lower_bound-1))+lower
no problem in this also this is also ok
P
Hi
Serenity
What's the main difference between char *str = Hello world and char str[12] ="Hello world"
Alex
What's the main difference between char *str = Hello world and char str[12] ="Hello world"
1. yes: str = "another data" no: str[1] = 'o' 2. no: str = "another data" yes: str[1] = 'o'
Serenity
So is the second string read-only ?
Serenity
And can be sliced by pointer manipulations ?
Serenity
Memcpy ?
Serenity
Ok thanks for the clarification.
Anonymous
/get cppbookguide
Indolent
/warn
Indolent
Where are my rights?
Dima
lol
Dima
/warn
/warns
Indolent
Indolent
Deranged.
Dima
Deranged.
/warn ot
Dima
see, it works:)
Indolent
I shall remember this.
Dima
I shall remember this.
memset to zeros
Serenity
What is the best way to practice C and make a real progress in more advanced topics ?
Indolent
I have friends in Mother Russia. Tread carefully.
Anonymous
Anonymous
All they ever tell me is how good their vodka is
Dima
same, what are your purposes?
Asdew
By coding in it
Yes, including bigger and smaller projects, using a version control system, and then contributing to other small projects and then maybe bigger projects.
Anonymous
same, what are your purposes?
Apart from the fact that you warn anyone you don't like
Indolent
Democracy is the way forward. That's what I am here for.
Anonymous
Can't say much about you
Dima
Dima
You did
/warns
Dima
not me
Indolent
You should accept democracy good lady. The world needs peace.
Indolent
I demand a referendum.
Anonymous
Anonymous
Go to communist chat
Indolent
ot ot
Anonymous
Ask in pm I'll give link
Indolent
How do you do that OT thing?
Yaw
let's all work towards understanding each other in a comely manner. After all😁, we are programmers
Indolent
This place needs debugging.
Indolent
Pm
No you.