Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

c++ fonksion pointer

#include <stdio.h>
int f1(int x) { return x * 2; }
int f2(int x) { return x * 4; }

int main()
{
    int (*fptr1)(int) = &f1;
    fptr1 = &f2;
  	fptr1(3);
}
Source by necatiergin2019.medium.com #
 
PREVIOUS NEXT
Tagged: #fonksion #pointer
ADD COMMENT
Topic
Name
3+7 =