Mega Code Archive

 
Categories / C / Function
 

Demonstrate the use of pointers and parameter passing

#include <stdio.h> void inc_count(int *count_ptr) {   ++(*count_ptr); } int main() {     int count = 0;     while (count < 10){         inc_count(&count);     }         return (0); }