Karthik Agarwal

Karthik Agarwal

  • NA
  • 748
  • 263.9k

How to get the data from array which has defferent data types?

Nov 17 2011 5:24 AM
Hi,

  I have an array which consists of different data types like hexadecimal values, strings and also contains one more array as well. What i need to do is get the data from an array. As if now i need how to get different data types in an array?

Ex: My array looks like below:
 
  void *l_TripResetLine3_Text_Data_VPA[5] =
    {
       l_TripResetLine3_Text_Format_U8A,
          (void *)"mnop",
          (void *)T_411_A,
          (void *)T_411_B,
          (void *)0x01
    };

where l_TripResetLine3_Text_Format_U8A is one more array as if now i don't have to read anthing about this. Then the T_411_A, T_411_B are macros which are nothing but hex values. Now the problem i have how to read the string from the array. I need C code. Reply ASAP.

Answers (2)