Message from C, C++ talks

July 2019

— #ot

— Https://t.me/joinchat/Ci0Cak-BPuxaHdcbjab4QQ

— /notes

— List of notes in C/C++:
- 0_to_show_item_use"#item"
- awesomeness
- best
- best-book
- bingo
- callingfunction
- cbook
- `c++_isnt_c_with_classes`
- cpp
- cppbook
- findprojects
- freeprogrammingbooks
- gcc9
- goodcodingmentality
- goodgoogling
- googleit
- great
- hownottoask
- howtoask
- howtopostcode
- howtoprogram
- ide
- learn
- mcve
- meta
- noendl
- nousingstd
- offtopic
- ossu
- ot
- reference-the-standard
- rules
You can retrieve these notes by using /get notename, or #notename

Message permanent page

— 

Please Help me out .How to debug this error and please also explain me .Below the piece of code I had pasted the error message as well. ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ ++ int numberOfOccuence(int Array,int x){
int count=0;
for(int k=0;k<10;k++){
if(Array[k]==x) count++;
}
return count;
} ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ prog.cpp:20:35: error: invalid conversion from 'int*' to 'int' [-fpermissive]
cout<<numberOfOccuence(Array,x);
^
prog.cpp:4:5: note: initializing argument 1 of 'int numberOfOccuence(int, int)'
int numberOfOccuence(int Array,int x){ https://pastebin.com/mLhgmGaG

— Good luck

— Error is clearly specified

— Read it

— Int* to int [-fpermission ] what does this mean ?

— Datatype is miss matched while conversion ?

— But how to debug this?

— Pastebin

— First of all, use of 'Array' does not match to what is in function parameters

— It's not actually an array

— Https://pastebin.com/mLhgmGaG