when we use cout we use " " and when we use single ’ ’ ??? please explain with example
What is purpose of (' ')?
when you have to print a string you should use " :"
ex :
cout<<" coding blocks:" ;
but if you use ’ ’ here it will give compilation error
cout<<'coding blocks'
when you have to print a single character use ’ ’
cout<<'a'<<endl;
cout<<“a”<<endl;
both are correct but second one is consider as string
i hope this helps
if yes hit a like and don’t forgot to mark doubt as resolved
if you have more doubts regarding this feel free to ask