Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

What is the purpose of #pragma directives in C?

Answer Posted / nashiinformaticssolutions

#pragma provides compiler-specific instructions.
Example:
#pragma pack(1) // Forces 1-byte alignment for structures
struct Example {
char a;
int b;
};

Is This Answer Correct ?    0 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

Do pointers store the address of value or the actual value of a variable?

1128


What are loops in c?

1070


Why is #define used?

1337


What is scope of variable in c?

1100


Why is struct padding needed?

1161


What is calloc in c?

1193


What is the purpose of the following code? Is there any problem with the code? void send(int count, short *to, short *from) { /* count > 0 assumed */ register n = (count + 7) / 8; switch (count % 8) { case 0: do { *to = *from++; case 7: *to = *from++; case 6: *to = *from++; case 5: *to = *from++; case 4: *to = *from++; case 3: *to = *from++; case 2: *to = *from++; case 1: *to = *from++; } while (--n > 0); } }

2557


Which header file is used for clrscr?

1109


Explain main function in c?

1139


Explain output of printf("Hello World"-'A'+'B'); ?

1562


What does the format %10.2 mean when included in a printf statement?

1713


How do I determine whether a character is numeric, alphabetic, and so on?

1189


Can we assign integer value to char in c?

1343


What is meant by initialization and how we initialize a variable?

1096


What is bash c?

1068