C Programming :: Declarations and Initializations
-
Point out the error in the following program (if it is compiled with Turbo C compiler).
#includeint main() { display(); return 0; } void display() { printf("Freshergate.com"); } -
Point out the error in the following program.
#includeint main() { void v = 0; printf("%d", v); return 0; } -
Point out the error in the following program.
#include struct emp { char name[20]; int age; }; int main() { emp int xx; int a; printf("%d\n", &a); return 0; } -
Which of the following is correct about err used in the declaration given below?
typedef enum error { warning, test, exception } err; -
Point out the error in the following program.
#include int main() { int (*p)() = fun; (*p)(); return 0; } int fun() { printf("Freshergate.com\n"); return 0; }

Whatsapp
Facebook