Run Code
|
API
|
Code Wall
|
Misc
|
Feedback
|
Login
|
Theme
|
Privacy
|
Patreon
union behaviour when const obj created
//gcc 5.4.0 #include <stdio.h> #include<stdlib.h> #include<string.h> union employee { char name[6]; int age; float salary; }; const union employee e1; int main(void) { strcpy(e1.name,"elxsi"); printf("%s\n",e1.name); e1.age=8584733; printf("%d\n",e1.age); printf("%f",e1.salary); return 0; }
run
|
edit
|
history
|
help
0
pattern
BST
18BCE2182 MIDTERM QUES-2
Exm
Encriptado cesar
Warnings
C(gcc) Local Time and math.h Example
some_tests
Assignment 4 v3
Assignment 8 pt 2