Serenity
I have to add a "product" to a supermarket pointer
Serenity
Yes, that's what I was instructed to do.
Serenity
So If I dynamically allocate my struct and its product_list field, So my struct will actually hold a list of product pointers ?
Mar!o
The double pointer seems useless... just ose a single as array
Whistleblower
When we dynamically allocate memory using malloc function then we have to free the allocated memory at the end of the code to prevent from memory leakage . For that purpose we use free() function. My question is that , how free come to know that what amount of memory it need to free because it just has a pointer passing as argument which gives starting address of allocated memory?
Ludovic 'Archivist'
I don't know But teaching is painful even for 1K
I actually enjoy teaching more than any other mission
Ludovic 'Archivist'
Too sad I'd need to either take another master or work as a full time employee for 5 years if I wanted to become an actual validated teacher where I live
Albraa
Hi
MᏫᎻᎯᎷᎷᎬᎠ
I actually enjoy teaching more than any other mission
Do you really enjoy explaining something for the 5th time and still receive "I don't get it"?
Anonymous
It's subjective I guess.
Whistleblower
Is there any proper docs for this which i can refer to get more info . Plz guide me.
Whistleblower
Thank you ,now i have clarity regarding this . I will look for sbrk.
Ludovic 'Archivist'
Do you really enjoy explaining something for the 5th time and still receive "I don't get it"?
That generally happen when you explain 5 times the same way. Teaching is more about finding ways to be understood than being understood on the first try
Ludovic 'Archivist'
Also there are people that you must let sit puzzled and they will understand what you mean like a flash in their head when you least expect it
Ludovic 'Archivist'
Also, teaching correctly makes you in need to find a somewhat deep level of understanding as you need to put things into words
Javi
Step 1: Think about the problem Step 2: Implement the solution Step 3: Check the implementation You're welcome
Albraa
Impact of learning today? ?
Asad
/report can i share a book that is 50 years old and out of copyright?
Jayram
Best websites to learn C for free ??
Ludovic 'Archivist'
Jayram
The C wikibook
Does it covers Advance Topics Of C
kdkdkddddddkddd
all the uses of scope resolution operator?
Anonymous
Hello, is there a way to initialize variables at the time of conditional evaluation. For example, int m = 10; if((int q = 9), q != m) . . . something like ⤴️, in C
Artöm
Not in C
Anonymous
if (int q = 9; q != m)
Anonymous
Not in C
Alright, I had exhausted all combinations in C haha I failed miserably.
Anonymous
if (int q = 9; q != m)
ooo mesmerizing. thanks!
Anonymous
ooo mesmerizing. thanks!
It's the latest C++, not C
Anonymous
It's the latest C++, not C
Yes I got you, C++17. Thanks alot!
Asad
Pavel
/report some hacking AD
Dima
You gotta get rekt
Dima
/ban 867309167 hack yourself
Ariana
Does it covers Advance Topics Of C
we will never know what you mean by 'advanced topics' until you go into detail
Ariana
:D
Ariana
am mainly on discord now lol
.
hi guys🖐🏻🖐🏻
.
I have a some problem with c programming
.
can you help me? pls
klimi
can you help me? pls
What's the problem?
klimi
Thats not c/c++ question I am afraid
TalkSick
TalkSick
😂😂
klimi
.
it is from data structure in c
TalkSick
That is a question based on data structure and c/c++ has DS concepts
Dima
This is pretty easy peasy
klimi
it is from data structure in c
Sure but this is algorithmic problem, not c/c++ related problem, I think you ask for the algorithm... Not the c program
TalkSick
Maybe long long array
TalkSick
Will do it
.
oh no no I made a mistake
.
it is not neccessary
.
just a second
Serenity
Can struct be partially initialized ?
.
that is
Serenity
Or whether I have to initialize all its values in the first place
TalkSick
Use a queue
.
Use a queue
can u help me Just I am android developer I dont know c or c++ well
Serenity
If you don't know , you do not have to answer.
TalkSick
Can struct be partially initialized ?
Yea by using constructor, but even if you initialise only half of its elements the rest will be initailized to null automatically when you create an object
.
Ahem..Ahem.. what??? 😒
🤦🏻‍♂️pls sir
Serenity
So if I do not care about the entire set of structure values at a certain point so I can assume that the uninitialized fields are just garbage
.
Dm me
sorry?
klimi
sorry?
He want you to write personal message to him, direct message