Message from C, C++ discussions

December 2019

— Hi

— 

Why does this code produce an error (in sensor read) when it recieves a serial input? Do I have to "clear" the outputs or something? https://pastebin.com/R2TJ2J0V

— What is function

— Hello

— Asking me?

— Int main()
{ int n=10;
*number=n;
Function(*number);
}

And function definition-
void Function(int *x)
{
*x=5;
}

will this code change value of n to 5?

Message permanent page

— Why don't you try?

— Its showing error

— No known conversion from 'int' to 'int *' for 1st argument;

— Try to use references &. Google, how to work.

— Wrong

— Whats wrong?