+ 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 Antworten
+ 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