#include <iostream>
typedef void (*someFunction)(int, char*);
void FirstsomeFunction(int i, char *c)
{
std::cout<<"\n In FirstsomeFunction";
}
void SecondsomeFunction(int i, char *c)
{
std::cout<<"\n In SecondsomeFunction";
}
int main()
{
someFunction arr[1];
int x = 0;
std::cin >> x;
if(x ==0)
arr[0] = &FirstsomeFunction;
else
arr[0] = &SecondsomeFunction;
(arr[0])(10,"Hello");
return 0;
}
I2luY2x1ZGUgPGlvc3RyZWFtPgogICAgICAKdHlwZWRlZiB2b2lkICgqc29tZUZ1bmN0aW9uKShpbnQsIGNoYXIqKTsKCnZvaWQgRmlyc3Rzb21lRnVuY3Rpb24oaW50IGksIGNoYXIgKmMpCnsKICAgIHN0ZDo6Y291dDw8IlxuIEluIEZpcnN0c29tZUZ1bmN0aW9uIjsKfQoKdm9pZCBTZWNvbmRzb21lRnVuY3Rpb24oaW50IGksIGNoYXIgKmMpCnsKICAgIHN0ZDo6Y291dDw8IlxuIEluIFNlY29uZHNvbWVGdW5jdGlvbiI7Cn0KCmludCBtYWluKCkKewogICAgc29tZUZ1bmN0aW9uIGFyclsxXTsKICAgIGludCB4ID0gMDsKICAgIHN0ZDo6Y2luID4+IHg7CgogICAgaWYoeCA9PTApCiAgICAgICAgYXJyWzBdID0gJkZpcnN0c29tZUZ1bmN0aW9uOwogICAgZWxzZQogICAgICAgIGFyclswXSA9ICZTZWNvbmRzb21lRnVuY3Rpb247CgogICAgKGFyclswXSkoMTAsIkhlbGxvIik7CgogICAgICAgCiAgICByZXR1cm4gMDsKfQ==