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...

29th Sep 2016, 5:25 PM
Benjamin
2 ответов
+ 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 !
29th Sep 2016, 6:03 PM
Navid Tak
Navid Tak - avatar
+ 2
single for character double for string
30th Oct 2016, 4:20 AM
Ankit Tejbahadur Yadav
Ankit Tejbahadur Yadav - avatar