Anonymous
I thought it was fixed size.
No. Please read up about Unicode and the different encoding schemes.
Yash
#include<stdio.h> #include<unistd.h> int main() { if (fork() || fork()) fork(); printf("Hello"); return 0; } Anyone please give me the explanation of how the above program print Hello 5 times.
Vlad
0-127 — default ascii symbols then it encodes the size if the first byte
Vlad
11000000 — two bytes 11100000 — three bytes etc
Anonymous
#include<stdio.h> #include<unistd.h> int main() { if (fork() || fork()) fork(); printf("Hello"); return 0; } Anyone please give me the explanation of how the above program print Hello 5 times.
Think of the return value of fork in the parent process and in the child process. Use the short circuiting logic for operation || in C and figure it out.
Muhammadkarim
input t1 = abcd |t2 = efgh output aebfcgdh
Muhammadkarim
Vlad
should be issued in c
This ain't how it works
Muhammadkarim
strcat
can you produce
Dm
strcat
RTFM ? :)
Ahmed
Muhammadkarim
Yash
It should be like this? P / \ 0 / \1 C1 P 0/ \1 0/ \1 C2 C1 C3 P 0/ \1 0/ \1 0/ \1 C4 C1 C5 C3 C6 P
But the ans is this... how? P / \ 0 / \1 C1 P 0/ \1 0/ \1 C2 C1 C3 P 0/ \1 C4 C1
k
C++ program for to find entered user name is valid or not
k
Get input from the user
M
Who can do this?
Google can this.
Anonymous
Google can this.
I couldn't find it
Anonymous
But the ans is this... how? P / \ 0 / \1 C1 P 0/ \1 0/ \1 C2 C1 C3 P 0/ \1 C4 C1
The return value of first fork() in parent process in if condition is true because it is greater than 0. So short circuiting of || operator prevents the second fork() inif condition from executing. It will execute only the fork() in the body.
Ar
Will carbon lan succeed ? Or just another google gimmicks?
Vlad
can you produce
tough shit size_t buff_size = strlen(str1) + strlen(str2) + 1); // + 1 for null terminator char* buffer = calloc(1, buff_size); strcat(buffer, str1); strcat(buffer, str2);
DaviChan
Who can explain differences between using tab and spaces
tab is this character: '\t' space is this character: ' ' a tab is a character that is usually expanded to multiple spaces depending on your linking/settings. Most people i know prefer tabs when writing, but use a formatting tool to convert them into spaces when checking it in for consistency.
Anonymous
tough shit size_t buff_size = strlen(str1) + strlen(str2) + 1); // + 1 for null terminator char* buffer = calloc(1, buff_size); strcat(buffer, str1); strcat(buffer, str2);
Did you read his question? He is not asking for string concatenation. He is asking for something akin to zip operation in Python.
𝕰𝖉𝖚𝖆𝖗𝖉𝖔
I'm using deno, i am making a .dll file so in Deno i can use ffi but it says, it is not a valid win32, how can I make it work, using gcc to compile
Chat Boss
𝕰𝖉𝖚𝖆𝖗𝖉𝖔 sent a code, it has been re-uploaded as a file
/
help
/
i have created an efi system partition but i cant write into it
/
because its protected
C4L1B3R
umm
C4L1B3R
its very unlikely it'll be able to be writable again
C4L1B3R
i had this program I forgot the name it might be able to help you
/
how is this related to c/c++?
because i am making a program to add in it in assembly
klimi
because i am making a program to add in it in assembly
and you are sure that the operating system can indeed write there? and your application has write permission too?
klimi
but i cant open it because it have not a letter i think
asm on windows? good luck, i know nothing about windows
Mr
Can anyone suggest the best free online course for C++
/
it worked in MBR
/
because i have replaced the boot code at the start of the usb
/
but i dont know how to boot a gpt usb
klimi
without operative systems
so what was that comment about "it have not a letter"? I am getting lost... if you are running in privileged mode, you should be able to write to whatever
Anonymous
Guys how did you start your careers as c++ developers?
C4L1B3R
not sure
Anonymous
Indeed dot com lol
My bad, I had to specified like you started programming in school or lately in university and than got the first job? Or switched from another area to c++ developer?
CX2F
My bad exploiting blackboxs
Anonymous
I am on my way to become C++ developer. I already work in embedded systems field as a firmware developer and currently I am studying C++ for backend. I would like to know how people find themselves as C++ developers
Anonymous
I missed a lot of things when started to work and now I try to fulfill all the white spots in my skills and knowledges
Anonymous
Is it possible to get remote job as a junior c++ developer?
Anonymous
At least there's a chance
𝕰𝖉𝖚𝖆𝖗𝖉𝖔
A complete noob
That's me
Anonymous
𝕰𝖉𝖚𝖆𝖗𝖉𝖔
Why?
I get stuck in a compilation
𝕰𝖉𝖚𝖆𝖗𝖉𝖔
With an .dll that is not working
Anonymous
I get stuck in a compilation
With ide or using toolchain?
Anonymous
Hi When I run the codes on eclipse there is an error that say : Module problem or sth like that and it doesn't run the code Can sb help me with this problem ?
𝕰𝖉𝖚𝖆𝖗𝖉𝖔
𝕰𝖉𝖚𝖆𝖗𝖉𝖔
I don't know much about compilation, i think i need another file so the export of functions are understood or something
Dm
I missed a lot of things when started to work and now I try to fulfill all the white spots in my skills and knowledges
I think the best way is start with basics: algorithms, data structures (classics) and start learning CPP from the totally begging. I think this approach better than try to fill different gaps (in case if you have a lot of gaps, but I know that MCU programmers doesn't use all CPP features) About remote job yes but you have to have food knowledge
Dm
gcc in powershell
If you have problems with something just Google the error than if you failed send the error code your CPP code compilation command which cause this problem
𝕰𝖉𝖚𝖆𝖗𝖉𝖔
I've researched but cant figure out
Dm
Where is the error?
Dm
Now I learn cpp from the scratch, a course almost 9 months
In my case It was enough for me to get good position as cpp dev
𝕰𝖉𝖚𝖆𝖗𝖉𝖔
Where is the error?
The file is not a valid win32