Difference between single quote ('), and double quote (")? | Sololearn: Learn to code for FREE!

0

Difference between single quote ('), and double quote (")?

Can I use a single quote to define a string variable? For example in python I can use both single and double quote...

9/29/2016 5:25:39 PM

Benjamin

2 Answers

New Answer

+2

actuary it depend of your syntax on language programing you do but in c base language ' for char but "" for array of char//also string STL ex: char a= 'b';//also u can use "b" :) char f [6]= "hello"; //string f= "hello"; sorry my EN is bad !

+2

single for character double for string