Explain #pragma statements.



Explain #pragma statements...

Answer / Ashish Khetal

"#pragma statement" is a non-standard preprocessing instruction used in C and C++ programming languages. It allows programmers to influence the behavior of the preprocessor, compiler, or other processing tools during compilation. The syntax is '#pragma <token>', where '<token>' is a specific string that provides instructions to the preprocessor. For example, "#pragma once" is often used to prevent multiple inclusions of the same header file.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More C Interview Questions

What is d'n in c?

1 Answers  


write a program to remove occurrences the word from entered text?

1 Answers  


What is difference between array and pointer in c?

1 Answers  


Struct(s) { int a; long b; } Union (u) {int a; long b; } Print sizeof(s)and sizeof(u) if sizeof(int)=4 and sizeof(long)=4

2 Answers   Mascot,


What is bash c?

1 Answers  


whats the use of header file in c?

2 Answers  


What is the use of the restrict keyword?

1 Answers  


a simple program in c language

5 Answers   IBM,


what is the output on the screen? int n; n=printf("my name is %d",printf("kiran %d",printf("kumar"))); printf("\n %d \n",n);

4 Answers   TCS,


write program on arrays

3 Answers   GE, Polycab,


a<<1 is equivalent to a) multiplying by 2 b) dividing by 2 c) adding 2 d)none of the above

2 Answers   HCL, NBN,


is forign key will be unique key any table or not?

2 Answers  


Categories