Run Code
|
Code Wall
|
Users
|
Misc
|
Feedback
|
About
|
Login
|
Theme
|
Privacy
function pointers
//gcc 5.4.0 #include <stdio.h> char fun(void) { printf("world\n"); } char fun1(void) { printf("hello\n"); } char fun2(void) { printf("byee...\n"); } void select(char (*fnptr[3])(void),int idata) { (*fnptr[1])(); } int main(void) { char (*fn[3])(void)={fun,fun1,fun2}; select(fn,10); return 0; }
run
|
edit
|
history
|
help
1
Please
log in
to post a comment.
lab6
Pointer Example
Lab 7 blackjack v0.6
ctest
Calculating longs p v1
scanf and integer manipulation
Virtual table sketch
SOLUCIONES_TRABAJO_05
Assignment 7
shapes and such
Please log in to post a comment.