C Programming :: Const
-
Point out the error in the program (in Turbo-C).
#include
-
Point out the error in the program.
#include
union employee { char name[15]; int age; float salary; }; const union employee e1; int main() { strcpy(e1.name, "K"); printf("%s", e1.name); e1.age=85; printf("%d", e1.age); printf("%f", e1.salary); return 0; } -
Point out the error in the program.
#include
-
Point out the error in the program.
#include
int main() { const int x; x=128; printf("%d\n", x); return 0; } -
Point out the error in the program.
#include
-
Point out the error in the program.
#include
#define MAX 128 int main() { char mybuf[] = "Fresher"; char yourbuf[] = "GATE"; char const *ptr = mybuf; *ptr = 'a'; ptr = yourbuf; return 0; } -
Point out the error in the program.
#include