+ 1

Do you know how inc works in c language?

Could you write examples of the body part? Please

14th May 2019, 3:46 AM
Felix
Felix - avatar
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šŸ˜¹šŸ˜…
14th May 2019, 4:33 AM
šŸ‡®šŸ‡³OmkaršŸ•‰
šŸ‡®šŸ‡³OmkaršŸ•‰ - avatar
14th May 2019, 3:54 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 4
Felix does are function parameters, the int* i; is a pointer to an integer, which can take an integer value
14th May 2019, 4:16 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 3
do you mean increment operator or something???
14th May 2019, 3:51 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 3
that's not a function, and write your words in full so that users can understand, and be able to help you out
14th May 2019, 3:53 AM
✳AsterisK✳
✳AsterisK✳ - avatar
+ 2
what's INC???
14th May 2019, 3:48 AM
✳AsterisK✳
✳AsterisK✳ - avatar
0
It's function, like num+1
14th May 2019, 3:50 AM
Felix
Felix - avatar
0
But it is void inc(int* i) { ... }
14th May 2019, 4:09 AM
Felix
Felix - avatar
- 2
Kinda
14th May 2019, 3:52 AM
Felix
Felix - avatar