Anonymous
Bcoz..i is constant..and rand function changing it's value..every time
klimi
It would give you error
klimi
Or won't give random number everytime
Dima
you are creating a new variable which can’t be modified later
Dima
with initialized value
klimi
Dima, Shelly I'm sad
Dima
you may take a look at constexpr to sort this out
Anonymous
It would give you error
I'm not contradicting you..and I'm not tested it..but I think..I will work finely
klimi
Define contradicting
Anonymous
Bcoz ..value has read only access..means..user cannot modify it later once it's declared..but..rand function assigning value every time and make it read only
Anonymous
Dima, Shelly I'm sad
Aww don't be sad
klimi
Const is only once
klimi
When you compile
klimi
Not Everytime you run the program
Dima
Dima
rom
Dima
lmao
MᏫᎻᎯᎷᎷᎬᎠ
lmao
Lmfffffaoo
klimi
Lmfao
klimi
MᏫᎻᎯᎷᎷᎬᎠ
Hmm
Anonymous
Okey.. Is it true..👇👇 const int i= rand();
use const_expr instead, should be evaluated once before or at runtime.
Dima
constexpr
Anonymous
constexpr
😊 thanks
MᏫᎻᎯᎷᎷᎬᎠ
Hmm
Anonymous
👌
Victor
it’s free
It is non-free (not libre) 😂
Victor
even though it is gratis 😂
Victor
It doesn't matter, a non-free website
Victor
since its backend is closed source, it is a non-free website =_=
Victor
its frontend is still non-free, because google doesn't give you permission to copy its js code =_=
Anonymous
/saved
Anonymous
##pointers
Anonymous
Dafaq!!!!
Ironicaly, depending on his implementation and if he would use a global variable, he wouldn't be completly wrong
Saurabh
I have to think a logic behind a question but I am unable to find . Please help me anyone. this #define writes RGBA as single INT #define RGBA(r,g,b,a) (((unsigned)(a) << 24) | ((r) << 16) | ((g) << 8) | (b)) Can anyone create a logic using bitwise operator to get R G B and A from single INT for HINT you need to use & and shift operator
Saurabh
Means it is the calling statement clut->clut4[entry_id] = RGBA(r,g,b,255 - alpha); Now we have clut->clut4[entry_id] . By this we can calculate RGBA value
Talula
8 bit can store from 0 to 255 that means 256 numbers.
Saurabh
Ok
klimi
NEVER CAST AWAY CONST
He asked exactly that WTF maxi :(
Anonymous
www.google.com
I'm falling in love with you 👍💘
Talula
I'm falling in love with you 👍💘
Why do you wanna do programming after you did your MBA and PhD?
Anonymous
Why do you wanna do programming after you did your MBA and PhD?
My brain can't stop to learn something new
S.
properly use &, >>, you can get r, g, b, a
Anonymous
Talula
Indonesian
Trick to learning programming is having a task, like what do you want to do and then use Google to work toward it... but set a goal, break the goal into steps and do each step... everything else will be harder.
Anonymous
Anonymous
Wdyt about Udemy course?
I don't know, I never took one^^
Anonymous
Wdyt about Udemy course?
But I think, if you have the money and it's not too expensive, it's never bad to take a course. Just don't expect that you "learn programming" in one course. You'll learn the theory behind it, how basics work etc, but the only real way for learning programming is to do it.
Anonymous
Why?
Sins
Its better to prefer books on C/C++
Sins
Most of them are self-explanatory
Shrey
Can any one give me siur e code 0f insert,delete,modify
Anonymous
Nowadays Can we apply for the job without having computer science degrees.? And how
Dima
yes
Dima
with no problem
Anonymous
Nowadays Can we apply for the job without having computer science degrees.? And how
Depends on the country, the job itself and how much salary you expect to get. But I'm sure you can.
Dima
but depends on your country
Dima
top kek
Anonymous
Which company that has most interest by programmer in the world?
Dima
there are a lot
Anonymous
Dima
it’s not a good question
Anonymous
Yee, and there are companys where some programmers would say it would be ther dream to work there - and others wouldn't like to work there.
Dima
you can’t just find out the best company and try to get into it
Anonymous
For example Microsoft :^)
Anonymous
Are companies prefer knowledge and skills than degree?
Dima
For example Microsoft :^)
“welcome my frend here ar our tech support friends"
Dima
this