C Programming :: Complicated Declarations
-
Point out the error in the following program (in Turbo C under DOS).
#include union emp { int empno; int age; }; int main() { union emp e = {10, 25}; printf("%d %d", e.empno, e.age); return 0; } -
Point out the error in the following program.
#include #include int main() { static char *p = (char *)malloc(10); return 0; } -
Point out the error in the following program.
#include void display(int (*ff)()); int main() { int show(); int (*f)(); f = show; display(f); return 0; } void display(int (*ff)()) { (*ff)(); } int show() { printf("Freshergate"); }

Whatsapp
Facebook