Answered Questions

  • What is a pragma?

    The #pragma preprocessor directive allows each compiler to implement compiler-specific features that can be turned on and off with the #pragma statement. For instance, your compiler might support a feature called loop optimization. This feature can be invoked as a command-line option or as a #pragma directive. To implement this option using the #pragma directive, you would put the following line into...

    soma praveen kumar

    • Mar 29th, 2007

    consider an examplestruct  a{char a;int b;char c;};sizeof struct a is 12 instead of 6if we declare #pragma() Before struct aThen size will Be 6.