Cannot Read Property Style Of Undefined Reference In C