Why and when do we need to use #pragma [closed]
Closed . This question needs to be more focused . It is not currently accepting answers. Want to improve this question? Update the question so it focuses on one problem only by editing this post . Closed 6 years ago . I was learning a winsock client server program and came up through #pragma comment(lib,"ws2_32.lib") . Understood its need here. But what are the other instances I can use it and why do I need to use it? dhein #pragma 's are implementation defined compiler commands. That means, each compiler could treat or support pragmas in a different way. They are used for example for