What is the purpose of #pragma directives in C?
Answers were Sorted based on User's Feedback
Answer / 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 |
Answer / glibwaresoftsolutions
#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 |
what is the difference between NULL('\0') and 0?
Write a simple program to find the size of different basic data types in C.
what is the different bitween abap and abap-hr?
difference between ordinary variable and pointer in C?
25. It takes five minutes to pass a rumour from one person to two other persons. The tree of rumour continues. Find how many minutes does it take spread the rumour to 768 persons. ?
11 Answers CTS, TCS,
What is a far pointer?What is the utility?
What is string function c?
what is the difference between static variable and register variable?
Explain what are reserved words?
wats the diference btwen constant pointer and pointer to a constant.pls give examples.
Develop a program that computes the new price of an item. The program should receive a character variable colour and a double precision floating-point variable price from the user. Discount rate is determined based on the colour of the discount sticker, as shown in the following table. An error message should be printed if an invalid colour has been entered
How to write in a function declaration and in function call in which the function has 'n' number of varible or arguments?