Prepare Interview

Mock Exams

Make Homepage

Bookmark this page

Subscribe Email Address

Question: What is the purpose of the 'attribute' keyword in GCC (GNU Compiler Collection)?
Answer: The 'attribute' keyword is used to specify additional information to the compiler, such as optimizing for size or alignment.

Example:

attribute((packed)) struct PackedStruct { / members */ };
Is it helpful? Yes No

Most helpful rated by users:

©2025 WithoutBook