Z0OM
Its showing error
Z0OM
no known conversion from 'int' to 'int *' for 1st argument;
Григорий
Try to use references &. Google, how to work.
Z0OM
Whats wrong?
Daniele°
Whats wrong?
int main() { int n=10; Function(&n); } void Function(int *x) { *x=5; }
Z0OM
Okay thanks
Daniele°
Okay thanks
int main() { int n=10; int* number=&n; Function(number); } void Function(int *x) { *x=5; }
Z0OM
Whats the difference in *number=n; And *number =&n;
Daniele°
& get address
Z0OM
But *number=n; Wont make number point to n?
Daniele°
*number = n; is: store value of n in address pointer of number
Z0OM
Hmmm
Daniele°
And is different from int* number = &n; In long form: int* number; number=&n;
Z0OM
Ok
Z0OM
One last thing.
Daniele°
Is (int*) number=&n; and not int (*number)=n;
Z0OM
Ok
Z0OM
I did as you suggested
Daniele°
Show code
Dima
lol
Daniele°
😂
Z0OM
No
Z0OM
Its done
Z0OM
Sorry to disturb you🙃
Z0OM
And thanks
Anonymous
@admins ANTI SPAMBOT DETECTOR! THIS USER MATCHES MY ALGORITHMS AS A SPAMBOT!REASON: Banned by Combot Anti Spam
Austin-sama
@admins ANTI SPAMBOT DETECTOR! THIS USER MATCHES MY ALGORITHMS AS A SPAMBOT!REASON: Banned by Combot Anti Spam
klimi
just let the users with userbot rain
数学の恋人
just let the users with userbot rain
hey should I add you in that group? (asking so that I can create group)
klimi
ye
数学の恋人
Unfortunately I don't have many real friends
数学の恋人
https://t.me/c_cpp_India
Dima
https://t.me/c_cpp_India
/warm Advertisement
数学の恋人
lol I got the permission
klimi
its a joke
klimi
warm not warn... just meh
Dima
lol I got the permission
yeah read my warn again 😂
数学の恋人
lol
数学の恋人
warm
MᏫᎻᎯᎷᎷᎬᎠ
.
Daniele
hello
Reica
hello
Hello😏
klimi
hi
Daniele
hi
can I ask questions about msvc and vscode?
klimi
Anonymous
Microserf detected
Anonymous
klimi
i dont use windows so i wont be able to answer you tho
Daniele
i dont use windows so i wont be able to answer you tho
my concern was about getting banned straight away
Daniele
lol
klimi
you know what... go ahead
klimi
if it isnt turbo c or assigment i am sleeping
Anonymous
Anonymous
:^]
Nomid Íkorni-Sciurus
Turbo C < Objective-C
what is Turbo C ?
Dima
what is Turbo C ?
you better not to know
Anonymous
what is Turbo C ?
Ngl I have no clue. Its vaguely familiar
Anonymous
I do want to learn objective c though
Anonymous
If for no other reason than to work with the GNUStep libraries because hnnngh NeXTStep
Anonymous
It is dying
And NeXTStep is dead
Anonymous
I just want to do it as a hobby
Nomid Íkorni-Sciurus
you better not to know
it is like a dark side of C like objective-c I guess
Dima
no
Dima
objective-c is a language
Dima
turbo c is retarded crap
Daniele
basically the problem is this: our teacher doesn't want us to use an IDE for whatever reason so I set up vscode with msvc (vs build tools) so it behaves almost like an IDE (for debugging and compiling). the problem is that I need to run vscode somehow from vs developer command prompt, otherwise it doesn't find the compiler, linker and the rest of the programs used to build. is there a way to set environmental variables for the build tools on windows 10?
Anonymous
Turbo-C: for the person who thought the turbo button made your CPU clock increase
Anonymous
Nomid Íkorni-Sciurus
I'm not understanding what "turbo" means
Nomid Íkorni-Sciurus
Well, I know what it means but I don't understand what it has to do with C
Anonymous