I am compiling the code with icpc command and I want to change the color of specific text in the program. How can I do that?

changing color of text is not a C-language function.

if the Intel Compiler has this capability, it is a "compiler extension". you will have to find the documentation for the compiler and research how this is accomplished.

be advised that any solution you find will not be portable, and will likely not work as expected on any system other than your own.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.