Created
March 14, 2019 22:02
-
-
Save kateolenya/153ad455b6e7a346efae5d441fae0281 to your computer and use it in GitHub Desktop.
Private function in C using static
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "private_funct.h" | |
int main() | |
{ | |
struct Contact * Tony; | |
Tony = create_contact(); | |
// print_numbers( Tony ); | |
// will cause compile time error | |
delete_contact( Tony ); | |
return 0; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment