Hasna
What is the use of sbrk
Programmer
It is system call used by functions like malloc,calloc and realloc to allocate memory ....
klimi
What is the use of sbrk
https://linux.die.net/man/2/sbrk
Hasna
Is there any simple example of the use of sbrk ?
exo
How have you declared/initialized your string ?
I didn’t because windows by default logs that execution (csrss.exe (protected process))
Programmer
I didn’t because windows by default logs that execution (csrss.exe (protected process))
Can you pls send your code...I am not able to understand your question.
Rose
User CYRUSS has 1/2 warnings; be careful! Reason: offtopic spam
Never Spam Bot
Luana Mavila sent multiple messages that looks like a spam. To stop the bot from deleting your messages, write something non-suspicious. Or find out why here. Spam deleted in this group: 2187
exo
Maybe that’s regarding hacking
? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ?
Dima
oh hell
Robot
https://google.github.io/styleguide/cppguide.html
Hasna
why #define header_h not #define header.h ?
Michael Scofield
why #define header_h not #define header.h ?
I think header _h is a header guard and header.h is the conventional extension for a header file
klimi
why #define header_h not #define header.h ?
Define defines a "variable" for preprocessor. Include copies the code from header into the file
sil 🍅 ▪️
hey guys, im trying to clone and i just copied the codes if im to host, do i get the information entered into the site or does it return to the original?
Eccentric
Bruh u know nothing about me
Eccentric
Stop it bruh💀
Michael Scofield
Stop it bruh💀
Ok , sorry bruh
Michael Scofield
Michael Scofield
Bro
Ya bro , what
Kelvin
Does anyone know where I can learn how to write recursion?
Michael Scofield
shut up
At my home ?
Michael Scofield
yes
You want address ?
Kelvin
Do you have any good websites or sources to recommend?
Michael Scofield
Why was my message deleted?
Stark
I wanna learn recursion by myself.
Becarefoul crashing your pc stack jaja
Ray【レイトレーサル】Tracer
I wanna learn recursion by myself.
To learn recursion, you have to learn recursion first
Ray【レイトレーサル】Tracer
Do you have any good websites or sources to recommend?
But jokes aside https://www.freecodecamp.org/news/what-is-recursion/ Or https://beginnersbook.com/2017/08/cpp-recursion/ (has C++ example)
Rose
That's 2/2 warnings; Arnav IPS is banned! Reasons: 1: non english 2: spam
MᏫᎻᎯᎷᎷᎬᎠ
Why const double a = 1; cannot be evaluated at compile time like const int a = 1; My guess is because floating-points will have a special treatment across different hardwares But then why constexpr double a = 1; will evaluate at compile time and const version not?
MᏫᎻᎯᎷᎷᎬᎠ
MᏫᎻᎯᎷᎷᎬᎠ
I know what is the difference between const and constexpr
const for a variable will have the same effect as constexpr if the initializer is a constant expression of an integral type
MᏫᎻᎯᎷᎷᎬᎠ
the question is: why integral only?
Ludovic 'Archivist'
the question is: why integral only?
Because the results of floating point operations is not standardized and may suffer from platform or device specific imprecisions
Ludovic 'Archivist'
then why constexpr double a = 1.0; works?
Try forcing the definition at compile time with consteval
Ludovic 'Archivist'
Or using a double as a template parameter
MᏫᎻᎯᎷᎷᎬᎠ
Try forcing the definition at compile time with consteval
you mean something like? consteval void foo() { const double a = 1.0; }
MᏫᎻᎯᎷᎷᎬᎠ
I mean Since double can be known at compile time with constexpr, then why it can't be with const
MᏫᎻᎯᎷᎷᎬᎠ
Awkwardly this compiles consteval double foo() { const double a = 1.0; return a; } int main() { constexpr double f = foo(); } but this does not int main() { const double f = foo(); static_assert(f == 1.0); } this compiles int main() { const int a = 1; static_assert(a == 1); }
Rose
User summer has 1/2 warnings; be careful! Reason: nohello.com
Doraemon
//run-time error: iterators denoting the range to copy from //must not refer to the same container as the one we are changing slist.insert(slist.begin(), slist.begin(), slist.end()); When we pass a pair of iterators, those iterators may not refer to the same container as the one to which we are adding elements. IS THIS STILL this way? i just test it, no run-time error happend, and i can cout the element in the list
Chat Boss
ㅤMᏫᎻᎯᎷᎷᎬᎠ sent a code, it has been re-uploaded as a file
MᏫᎻᎯᎷᎷᎬᎠ
any clue @QNeko?
Rose
That's 2/2 warnings; Hua Guliang is banned! Reasons: 1: random GM 2: nohello.com
Rose
User Vijay has 1/2 warnings; be careful! Reason: spam / offtopic / nohello.com
Rose
User Ray【レイトレーサル】Tracer has 1/2 warnings; be careful! Reason: nohello.com
Hasna
How do we find a file in C on OS Windows ?
Ziky
How do we find a file in C on OS Windows ?
https://duckduckgo.com/?q=find+file+in+C+windows&t=fpas&ia=web
Red
Which button
Maxim
we are not here to solve your homework
Chat Boss
we are not here to solve your homework
Read the pinned message regarding homework. https://t.me/programminginc/453966
Ragavan
Write the c program to print 1 to n even numbers
Rose
Write the c program to print 1 to n even numbers
User Ragavan has 1/2 warnings; be careful! Reason: homeowrk
amine
hello i have problem how do i call for dimensional arays n alocate them staticaly in a fonction
SelflessGene
Similarly
SelflessGene
Similarly
Write others
SelflessGene
Logics should be easy and similar
Ziky
hello i have problem how do i call for dimensional arays n alocate them staticaly in a fonction
Similarly as sigledimensional arrays. Just add another dimension into brackets [N]
Ludovic 'Archivist'
any clue @QNeko?
Clang may not yet be compliant. It has been late on these things for quite a while
SRI
With out main function program execution is it possible
SRI
In programming c without main function program execution is it possible
SRI
#include<stdio.h> int satish() { printf("satish"); return 0; }
MᏫᎻᎯᎷᎷᎬᎠ
Clang may not yet be compliant. It has been late on these things for quite a while
I think you mean GCC since clang produced the right results
Ludovic 'Archivist'
I think you mean GCC since clang produced the right results
Dunno, C++23 may be frozen, but they seem to be unafraid of implementing things late. Lucky them it is not published yet