+ 1
Do you know how inc works in c language?
Could you write examples of the body part? Please
9 Answers
+ 5
Felix š
š
What you are showing is a user defined function so not necessary that it will always have name "inc" it can be other than "inc"
But anyway you seems to be confused š
š
So let me explain what that code means š
void šŖ it indicates the function is no return type function... means it will not return any value ..
inc šŖ is name of function ..
You can call function by writing it's name and passing parameter list in ( ) parenthesis š
int *i šŖ this is argument ...
It tells compiler what values will be passed to function...
int *i means address of integer will be passed to function (i. e call by reference š)during function call passed address will be stored in pointer variable "i"
{.....} šŖThe entire body of function is in these curly braces { }
I don't understand your question properly but I tried my best and made it little intersting with my emojisš
I hope you'll understand itš¹š
+ 4
please do use the search bar before asking questions, not to have duplicates
https://www.sololearn.com/discuss/1777199/?ref=app
https://www.sololearn.com/discuss/489143/?ref=app
https://www.sololearn.com/discuss/996984/?ref=app
+ 4
Felix does are function parameters, the int* i; is a pointer to an integer, which can take an integer value
+ 3
do you mean increment operator or something???
+ 3
that's not a function, and write your words in full so that users can understand, and be able to help you out
+ 2
what's INC???
0
It's function, like num+1
0
But it is
void inc(int* i)
{
...
}
- 2
Kinda