+ 1
pls help with this question.
Type in a code to call the functions pointed by the funcs array. // suppose f1, f2, and f3 are declared void (*funcs[3])() = {f1, f2, f3}; for (int ix = 0; ix < ___; ix++) { _____[ix](); }
4 Respostas
+ 5
Mittal
void (*funcs[3])() = { f1, f2, f3};
for (int ix = 0; ix < 3; ix++) {
funcs[ix]();
}
Fill in the blanks are
1) 3
2) funcs
Hope this enough to implement the code to call all the three function f1, f2 and f3 in a loop in sequence as specified
DHANANJAY
+ 1
Aastha Naik
Code written needs correction as below
int num = 42;
<datatype> * ptr = #
printf("%d", *((int *)ptr));
<datatype> can be
int *ptr
OR
void *ptr
DHANANJAY
0
thanks a lot DHANAJAY.
0
int num = 42;
*ptr = #
printf("%d", *((int *)
));