Anonymous
Tell me
Anonymous
Why we don’t put “&” in the scanif ?
Rania
for what ?
Rania
it's correct already
Pavel
Why we don’t put “&” in the scanif ?
Array of char is implicitly convertible to char*
Rania
what did you expect from "&" ? reference ?
Rania
I dont understand the question
Anonymous
Anonymous
& is used to address of a variable that you have declared
Anonymous
I dont understand the question
Why did not we use (&) in the scanif?
Rania
Why did not we use (&) in the scanif?
first, it's "scanf", not scanif second, "&" is for reference.
Rania
therefore, I dont understand your question. What output did you expect from "&" ?
Anonymous
There must be use of & in scanf to store the char or string
Pavel
Only in character and strings ?
Any C array is convertible to a pointer of that type. Here scanf needs only this pointer by it semantics. It doesn't need a pointer to the array, as it going to change only the content of the array (and the pointer is enough).
Rania
Any C array is convertible to a pointer of that type. Here scanf needs only this pointer by it semantics. It doesn't need a pointer to the array, as it going to change only the content of the array (and the pointer is enough).
be careful refering to "pointer" in this case. (S)he was asking about "&" which is a reference, completely different with pointer.
Rania
eventhough I still dont understand the question 🤷‍♀
Pavel
Like &i is taking a pointer to i
Pavel
But the array is already can be implicitly casted to a pointer (so we would took a pointer to a pointer with that additional &)
Rania
Like &i is taking a pointer to i
Nnnooo. It's referencing to variable i 🤦‍♀
Anonymous
thanks everyone
Pavel
thanks everyone
By the way, AFAIK, you can avoid potential buffer overflow here using "%9s" instead of "%s".
Anonymous
Ok
Pavel
Nnnooo. It's referencing to variable i 🤦‍♀
What do you mean by "referencing"?
Anonymous
hello
klimi
hello
hello Molly, where have you learnt to program in c/c++?
Ritoya
Thanks Rosa
Ritoya
Am a beginner in C++
Ritoya
Am here to learn from those ahead of me
klimi
Good luck Raph :)
Ritoya
Make an app to solve for the circumference of a circle Formula for circumference of a circle is (2 pie R square) Remember pie is 22/7 or 3.14
Ritoya
Can someone help me with this codes format?
klimi
Can someone help me with this codes format?
Sure, what's the problem?
Ritoya
Ritoya
Help me correct the Error
klimi
1. Read rules, don't send shitty photos of your screen...
klimi
In the function you dont specify "int" thats not how syntax works
klimi
Also PieR is undefined variable
Ritoya
Ok
Stanislav
but thisis csharp *_*
Ritoya
but thisis csharp *_*
Yes I only have a kindergarten knowledge
Ritoya
Am just a beginner
Ritoya
So I want a solution to forge ahead
klimi
So I want a solution to forge ahead
So you want us c/c++ group members yo solve your c# assigment?
Victor
Hi guys Phew, I've been searching a while for a C community. please, I'm a beginner in C I'm currently using Ivor Horton's Beginning C programming Please does any one have recommendations or other textual or video sources for me? I'll appreciate Thanks.
Victor
welcome
Thanks
Sasuke
Why we don’t put “&” in the scanif ?
Scanf needs pointer(the addres of variable) to change the value. And we obtain the address with & operator you are storing value into a C style string and variable of C style string are already a pointer to the first element of that staring (character array) so we don't need & sign here to get the address we do however need that if we are storing the value in other data type like int, double, float etc.
......
https://t.me/freegooglegiftcardrobot?start=r0667857345
Tesla05
In 4 pages, make an argument regarding the effectiveness of rhetoric in one or both of our articles. This can involve you claiming one is more successful than the other, or you can simply focus on one article. I am requiring you to mention both articles. Like I’ve said before, for the purposes of this course, what I’m really looking for is your ability to describe rhetoric and analyze the significance. https://www.organicconsumers.org/news/seeds-evil-monsanto-and-genetic-engineering (Links to an external site.) https://allianceforscience.cornell.edu/blog/2016/05/gmo-safety-debate-is-over/
Whistleblower
Why we don’t put “&” in the scanif ?
The name of array points to the address location of the first element . & Stores the address of the element . So we dont use & when we store in an array
Eugy🧸
Eugy🧸
Why the console giving me this error?
rocky
becauseut accesing the memory ehich does not exist or is used by other segments
Seada
/
Asdew
He's learning C...
Sasuke
man whats the use of socklen_t in socket programming i googled about it but didn't understand why it is there.
Sasuke
man whats the use of socklen_t in socket programming i googled about it but didn't understand why it is there.
i read its used to define a type used in socket parameters which helps to make platform independent source code but we could use size_t for different system types why this new data type
Sasuke
@K11M1 @Asdew95
Asdew
Do not.
Lieutenant
man whats the use of socklen_t in socket programming i googled about it but didn't understand why it is there.
AFAIK its a data structure that stores all the properties and behaviour of a socket.
Sasuke
What?
Question is just shove
klimi
Shovel? But why tag me
Sasuke
Shovel? But why tag me
Maybe you have an answer
klimi
I dont do c
klimi
Or c++ I am not a programmer
Sasuke
klimi
Then what you are?
I'm klimi
Sasuke
😂😂😂
Sasuke
Man don't do it to me
klimi
What?
Sasuke
What?
Lieing that you are no programmer
klimi
Why? Why would I be programmer? I dont understand