How to write a code in c language...where we want out put to be in different colours words (text) in one single line... Using | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How to write a code in c language...where we want out put to be in different colours words (text) in one single line... Using

Text must be in different colours..in same line

27th Dec 2020, 12:36 PM
Vedika Agrawal
Vedika Agrawal - avatar
1 Answer
0
coloring text in console can be a little tricky. The console knows which color to display using special characters. you can learn more on this stackoverflow thread: https://stackoverflow.com/questions/4053837/colorizing-text-in-the-console-with-c (even if this is c++ I think the character code are the same with c)
27th Dec 2020, 1:53 PM
Apollo-Roboto
Apollo-Roboto - avatar