+ 1
Syntax explanation
Hi, I have this task In code playground. In this string : int(*f2)(int,int)=f1; As I understand we overload(or override? function) but how this syntax construct? What Standart It Is I’cant find It on cppreference.com ..? Task code: int f1(int a, int b){return a+b;} int f2(int a, int b){return a-b;} int main() { cout<<f2(2,2); int(*f2)(int,int)=f1; cout<<f2(2,2); f2=::f2; cout<<f2(2,2); return 0; }
1 Answer
+ 1
Function pointer !
Thank you👍🏽
Hot today
Python — File Handling
0 Votes
Loop question, I've tried everything that I knew I just don't know. Please help me solve it out
1 Votes
Help me solve this (using loop)
1 Votes
What is wrong? Error on test.
1 Votes
Help me wiht python
1 Votes