How to increment a variable by 1 whenever a function is called?(C PROGRAMMING)
I have a variable called currentSize in my main which tracks thesize of my array as i add elements to it. How do i write my code sothat whenever i call my add function in main it increments thecurrentSize variable?
Please dont use pointers as i am a beginner in c and my coursehasnt taught up to there yet, thank you.
in main which i want to increment by 1 whenever i call my addfunction.
Expert Answer
An answer will be send to you shortly. . . . .