0 votes 0 votes #include<stdio.h> int fun1(int x) { x=14; } int fun2(int x) { x=20; } int main() { int(*p)(),m,n; scanf("%d",&m); if(m) p=fun1; else p=fun2; n=(*p)(); printf("%d",n); return 0; } Suppose input given 0 Programming in C programming-in-c output programming + – srestha asked Mar 7, 2018 edited Mar 7, 2018 by srestha srestha 585 views answer comment Share Follow See all 5 Comments See all 5 5 Comments reply Show 2 previous comments Tesla! commented Mar 7, 2018 reply Follow Share No output, compile time error 0 votes 0 votes srestha commented Mar 7, 2018 reply Follow Share Again error? I am not getting any What is the error? 0 votes 0 votes Tesla! commented Mar 9, 2018 reply Follow Share By rewriting code #include<stdio.h> int fun1(int x) { x=14; } int fun2(int x) { x=20; } int main() { int (*p)(),m,n; scanf("%d",&m); if(m) p=fun1; else p=fun2; n=(*p)(); printf("%d",n); return 0; } I am getting output 0 0 votes 0 votes Please log in or register to add a comment.