+ 1
Do you know how inc works in c language?
Could you write examples of the body part? Please
9 odpowiedzi
+ 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