Wednesday, May 2, 2012

Function pointer Example 2

#include <stdio.h>
void (*print)(char *message) = NULL;

i_will_print(char *message){
printf("\n I will finish this job by doing following thing \n");
printf("---------%s-----------",message);
}
void main()
{
    unsigned char message[100];
    scanf("%s",&message);
    print=i_will_print(message);
   
}

No comments:

Post a Comment