• Anonymous union inside a struct?
    The C complier doesn't like this piece of source code: ------------------------- struct MyUart { union { unsigned char rx; // read unsigned char tx; // write }; unsigned char control; // r...
  • unions ?
    I want to make a function that accepts 3 calling parameters but one of which is either be a string or an integer. So in an attempt to realise it I started to play with the following. But I get a...
  • Union
    I need to set up the following union type definition in a global header (.h) file typedef union { struct { unsigned char App_Data_Type; //Power on tests unsigned char DPort_RAM_Fail_Flag...
  • Union
    hi i am programming AT89s52 in C.I am facing a problem in the program.i have declared array in union as shown below union { unsigned int uiData[100]; }s; The problem is i have to access this...
  • UNION
    Example for use of union in C51