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?

— What is function

— Hello

— Asking me?

— Int main()
{ int n=10;

And function definition-
void Function(int *x)

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?