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
Project 3 part 2 Book v0.7
Lab 7 blackjack v1.1
formatting_input_and_output
Finite State Machine Program Example (ECE 2534)
CharacterInput
Test 4
Character testing
FizzBuzz
18BCE2182 ASSESS_1 Q2-2
TeleBook2