Power Programming Languages

Power Programming Languages

IBM Power, including the AIX, IBM i, and Linux operating systems, support a wide range of programming languages, catering to both traditional enterprise applications and modern development needs.


#Power


#Servers
#Programminglanguages
 View Only

C1X feature: Anonymous structures

By Archive User posted 03/02/14 08:35 PM

  

Originally posted by: Cecilia_F


The IBM XL C/C++ compiler, V12.1 starts to support the declaration of anonymous structures.

An anonymous structure is a structure that does not have a tag or a name and that is a member of another structure or union.
All the members of the anonymous structure behave as if they were members of the parent structure. An anonymous structure must meet the following conditions:

  • The structure is nested inside another structure or union.
  • The structure has no tag.
  • The structure has no name.

You can enable this feature under the extc1x language level.
 


#C/C++andFortran
#C/C++-compilers-for-AIX
0 comments
0 views

Permalink