-> Turn_Dir[ 2] = &TURN_DIRC;
Turn_Dir[ 2] is declared as ' Bool (*Turn_Dir[ 2]) (void); '
TURN_DIRC is a function declared as ' int TURN_DIRC (void); '
function pointer of type 2d array is assigning with address of a function.
Please answer if you know how to wite a test.ptu for this part of C source code.
Thanks in advance,
You have to write a test case to verify that Turn_Dir is assigned with NONIL value.
Thank you Rangareddy, Yes it worked when initialized with NULL and checking expected value as &TURN_DIRC.