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ᏫᎻᎯᎷᎷᎬᎠ
Guys i am a student...i want to learn c programming....from beginning...how can i start that?
Go to google Write anything about C books for beginners See the results Boom, you are in
Renan
Nop
Then I think you should start with the basics. Try understanding how computers work first.
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
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
Modifying the same variable more than once in the same sequence point is undefined behavior
there is a sequence point between the two operand expressions of a comma operator
Anonymous
y=(variable, variable)
Anonymous
y=(variable, variable)
the parentheses are meaningless here
Anonymous
Ah now it makes sense
Anonymous
oh right, only comma has lower precedence than assignment
Rock
I know basic but unable to solve problems what to do😕
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
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
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
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 🙏🙏🙏🙏🙏🙏🙏
Shvmtz
May be I'm not clear in my words. I meant 'What type of projects is c++ used for today'
1. Used in embedded systems 2. Operating systems 3. GUI 4. Cloud storage system 5. Database 6. Game development, etc.
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
Tarak
What is the output and meaning of X=1,3; in c language
Anonymous
Brief
Bonjour à tous
Brief
Tarak
You should ask it with full details
question is that much only
Anonymous
Bonjour à tous
It's in French that's what I said
Anonymous
Anonymous
?
Tarak
int
Anonymous
int
You will get your answer here https://www.geeksforgeeks.org/a-comma-operator-question/amp/
Tarak
ok thanks
Anonymous
French is not allowed?
Nope what's the objective of speaking if people don't understand 😅
Anonymous
Bonjour à tous
By the way good afternoon
Anonymous
To you too
Advisor.007✨
Hello🌸
Brief
I have a little problem with lcd programming
Anonymous
hello, my friends :D
Anonymous
I have a little problem with lcd programming
You can ask here if it's related to C/C++ I am just a beginner in programming languages. Experts here may help you out
Pruthviraj
Hi guys
Pruthviraj
I want to learn c and c++ in depth
Pruthviraj
Can anyone guide me