Question: #include #include void foo1() { printf(Hello ); } void foo2() { printf(World); } void func(void (*fun)()) { fun(); } void funct(void *fun) { printf(%c ,
#include#include void foo1() { printf("Hello "); } void foo2() { printf("World"); } void func(void (*fun)()) { fun(); } void funct(void *fun) { printf("%c ", *(char *)fun); } int main() { LINE A LINE B LINE C char c = '!'; func(&c); return 0; }
Consider the above code. If the output is:
Hello World!
Then,
what are line A B and C respectively?
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
