Single Choice Not Set

QCan we have a pointer to a function?

ID: #1366 Pointer in C Language 5,855 views
Question Info
#1366Q ID
Not SetDifficulty
Pointer in C LanguageTopic

Choose the Best Option

Click any option to instantly check if you're correct.

  • A Not possible ✔ ✖
  • B Possible ✔ ✖
  • C Depends on the return value ✔ ✖
  • D Depends on the # of arguments ✔ ✖
Correct Answer

Explanation

Answer:b.Possible
void func(int a)
{
}
void main()
{
void (*fp)(int);
fp=func;
fp(1);
}

Share This Question

Challenge a friend or share with your study group.