Naol
to none zero value
Priori
Priori
Priori
But the array elements are getting different value
Pooja
Riya
It will give only the int part in x
Riya
Pooja
Okay.. Thanks
Mandelbröt
Sasuke
Yo
ברני
Hey, I'm reading a c book and I got a little confused with the get char and EOF, can someone maybe explain it to me better? 🙈
Exelmple..
main() { int c; while ((c = getchar()) != EOF) putchar(c); }
ברני
Oh and putchar..
Yash
hello friends....
Yash
there is one problem on HackerRank
Yash
https://www.hackerrank.com/challenges/compare-the-triplets/problem?isFullScreen=true
Dima
lol
Yash
Yash Patil, [30.10.20 18:35]
int* compareTriplets(int a_count, int* a, int b_count, int* b, int* result_count) {
result_count=(int *)malloc(2 * sizeof(int));
for(int i=0;i<2;i++)
result_count[i]=0;
for(int i=0;i<3;i++){
if(a[i]>b[i])
*(result_count)+=1;
else if(a[i]<b[i])
*(result_count+1)+=1;
}
return result_count;
Yash
Yash
Yash Patil, [30.10.20 18:35]
int* compareTriplets(int a_count, int* a, int b_count, int* b, int* result_count) {
result_count=(int *)malloc(2 * sizeof(int));
for(int i=0;i<2;i++)
result_count[i]=0;
for(int i=0;i<3;i++){
if(a[i]>b[i])
*(result_count)+=1;
else if(a[i]<b[i])
*(result_count+1)+=1;
}
return result_count;}
Nameful
Yash
👆here is a problem
Anonymous
hey help me i am making a game in c and vulkan and i get this segmntation foult err
Kenny
Use pastebin man
Anonymous
it was a github repo link
Anonymous
Kenny
sorry
Don't worry, it's better i think hehe
Shuntaro Chishiya
Hey guys can anyone help me how to hide PID ?
Shuntaro Chishiya
Of any particular data
Shuntaro Chishiya
Or app
Ammar
Process ID?
Ammar
I don't think you can, unless you rework the kernel.
Shuntaro Chishiya
Dima
It’s not possible unless you rework kernel
Ammar
https://github.com/torvalds/linux/blob/master/include/linux/sched.h#L813-L814
Shuntaro Chishiya
Anonymous
someone who can face any of these problems (1586,1658 in acm.timus) and share how solved it step by step? as a guide to understand how to apply the dp.
Foxner
Hi. The C++ international standard document that I've found on the internet states that all assignments "return an lvalue reffering to the left operand". I've read on cppreference that an lvalue is a type of a glvalue, which is "an expression whose evaluation determines the identity of an object ..."
I'm confused. What does it mean for an expression to return an expression? To my current knowledge, assignments with default types as the operands return a reference to the variable that is being assigned to, but I'm new to the concept of lvalue. Can anyone shed some light on this?
Foxner
Also, is it correct to say that expressions like x = a and ++x return a reference to x?
Nils
Nils
You can actually do:
x = y = a
professor
I have a stuck on dynamic workers . Example if I have 10 tasks = 4 workers , if its 100 = 10 workers so on , but how can I built of? tasks / ?? = ?
Anonymous
Anonymous
Hello
V01D
Hadaward 'Solly'
throw good practices through the window and you're good to go
Kenny
Kenny
Guys, how can i implement a search engine like Google with c++?
Hadaward 'Solly'
Douglas
/get cbook
Ammar
/report
Ammar
What kind of spam is this
James©®
Please ban her due to porn
Ammar
WTF
James©®
I am unable to delete this message anyone can help me
Gnostic Trades |
@MissRose_bot
James©®
/report
Hadaward 'Solly'
/report
Indolent
Admins y'all asleep or what
James©®
@OxFFFFFFFF please. Take action on this matter
Ибраги́м
Ибраги́м
Not Boston Dynamics' Product
Ибраги́м
/ban into "/dev/null"
James©®
I have another request please delt these message from everyone
Indolent
Ибраги́м
Sorry guys, bow cleaned up.
Ибраги́м
U can now throw Templates and Pointers at each other
Indolent
I will drink a vodka with my davushka
Tohirjon
Indolent
Nacism?
that a Russian word
Tohirjon
Ибраги́м
Thanks, now back to C++ inb4 your messages get purged.
Indolent
Fight for the motherland comrades!