conversion between a pointer to function and another type [MISRA 2012 Rule 11.1, required]

后端 未结 0 557
花落未央
花落未央 2021-01-06 19:55

I am using array of function pointer as below to avoid the switch condition in code.

void (*pfGetVal[3])() = 
{
      E_func1,
      E_func2,
      E_func3
};         


        
相关标签:
回答
  • 消灭零回复
提交回复
热议问题