What is the difference between " " and ' ' when we work on strings in c? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the difference between " " and ' ' when we work on strings in c?

28th Jul 2019, 11:59 AM
GameHuB
GameHuB - avatar
1 Answer
+ 6
If there is only one character it's enclosed in single quote char alphabet='a'; But if we have a string then we use double quotes. char greeting[6]="hello";
28th Jul 2019, 12:02 PM
🇮🇳Omkar🕉
🇮🇳Omkar🕉 - avatar