Add a second identifier, bulbB
, to the identifier list
of the previous program.
Now there are two structs that follow the memory layout of the declaration.
Initialize bulbA
as before, and then copy the data
in bulbA
to bulbB
.
#include <stdio.h> struct { int watts; int lumens; } bulbA, ???? ; int main() { /* set values for bulbA */ /* copy values from bulbA to bulbB */ /* print values of bulbB */ return 0; }