Emir
#include <cstdio>
int main(){
register int x = 5;
int a = 5;
int * p = &x;
printf("%p\n%p", *p, &a);
}
Why register variable adress is on the stack?
MᏫᎻᎯᎷᎷᎬᎠ
Renan
Nop
Then I think you should start with the basics. Try understanding how computers work first.
Emir
Aswin
Okey
Anonymous
Okey
Mehnnn YouTube is the key....goodluck....books will slow you down....start with video's then use books when you're good with video's
Aswin
Emir
Thanks a lot
Anonymous
Do u prefer any better videos ?
Search beginner C tutorials on YouTube ....buh I'd advice you to learn c++ rather than C....learn from bucky beginner tutorial..he is really fun..then learn from cave of programming in the advanced level("advenced c" is the channel name)
Anonymous
Aswin
Anonymous
Anonymous
y=(variable, variable)
Anonymous
Ah now it makes sense
Anonymous
oh right, only comma has lower precedence than assignment
Anonymous
Rock
I know basic but unable to solve problems what to do😕
Anonymous
Rock
Matrix,Patten so on
Renan
Are you a man or woman? 🤔
Rock
But I can't find proper source to get the it
Renan
OK. I am a man.
Rock
🤩 oh I will try it
Renan
Is that book free? 🤔
Anonymous
hello, I have a function that creates an array with mmc positions, all with 0 and then replaces 0 with 1 in some specific positions (for example 11010). I'm trying with a while, to make these positions shift from 1 to each interaction (for example offset = 0 the sequence is 11010, offset = 1 the sequence would be 01101, offset = 2 the sequence would be 10110, offset = 3 the sequence would be 01011, ...) in the code is not working because as it goes, the values do not return to the beginning of the array (for example: 11010, 01101, 00110, 00011, 00001)
offset = 0;
while (offset < mmc){
a = 0;
b = 0;
int maior[mmc];
memset(maior, 0, mmc*sizeof(int));
while (a < mmc/pattern->v) {
for (c=0; c < pattern2->k; c++){
maior[((pattern2->onSlots[c] + a*pattern2->v) % mmc) + offset] = 1;
printf("offset %d", offset);
printf("maior %d-> %d\n",b, maior[b]);
b++;
}
a++;
}
}
Anonymous
I can't detect where I went wrong,
Anonymous
ops, offset 2 e saída seria 10110 e offset 3 seria 01011
Anonymous
yes, but I'm not able to do this operation
Anonymous
ops, offset 2 and output would be 10110 and offset 3 would be 01011. sorry, i'm brazilian and i wrote in portuguese
Shvmtz
Thanks
Shvmtz
Can you suggest some books for beginners and at intermediate lvl
Anonymous
Sasha
Hi, I’m a java developer and I’m interested in c/c++. Is there a senior c++ developer who can DM me and answer 2-3 questions ? Thanks
Anonymous
u can ask here
Sasha
For example with Java you are more likely to have a backend web service project where you are developing some rest api. What about c/c++ ? I know that it can be used for any type of project but I’m interested in current real world trends.
Anonymous
guys Can anyone help me understand one little difference in a pointer code?
Anonymous
Anonymous
The memory safe language needs to take care of input validation and you use C/C++ just for performance. It should never directly be exposed to a user
Sasha
Anonymous
Anonymous
Whatever you can do in java you can do in c++
Anonymous
So I cannot exactly tell what you're looking for
Ekrem
Hello How can I sort the 2D array with bubble sort ?
Emir
void swapNodes(LinkedList * linkedlist){
Node * iter = linkedlist->head;
while(iter->number > iter->next->number){
}
}
How can i swap 2 nodes?
Dima
this is offtopic
Gyan Prakash
Kisi ke pass bca second samester ka note hai to send please please 🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏🙏
Gyan Prakash
All
Gyan Prakash
Please please 🙏🙏🙏🙏🙏🙏🙏
Nikk
Anonymous
From where i can do data structures & algo ??? In cpp & how much time it will take to clear campus level coding Questions ?
Anonymous
🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩🚩
Anonymous
What's is the time complexity of "log2(n)" in cmath library
Sasha
Well
If you are a c++ dev, I’m curious to know what project are you currently working on ? Is it a webservice or some low-level driver or something else
Sasha
Tarak
What is the output and meaning of X=1,3; in c language
Anonymous
Brief
Bonjour à tous
Anonymous
Brief
Tarak
Anonymous
Anonymous
?
Tarak
int
Brief
Anonymous
int
You will get your answer here
https://www.geeksforgeeks.org/a-comma-operator-question/amp/
Tarak
ok thanks
Anonymous
To you too
Advisor.007✨
Hello🌸
Brief
Brief
I have a little problem with lcd programming
Anonymous
hello, my friends :D
Pruthviraj
Hi guys
Pruthviraj
I want to learn c and c++ in depth
Pruthviraj
Can anyone guide me