What is the meaning of # in following line. While(str[i]!='#') | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the meaning of # in following line. While(str[i]!='#')

c++

25th Oct 2018, 5:53 AM
Aayushi
Aayushi - avatar
3 Answers
+ 2
It's a character, ie search through string until you get to a #.
25th Oct 2018, 6:11 AM
Jared Bird
Jared Bird - avatar
+ 1
what kind of character is it?
25th Oct 2018, 11:12 AM
Aayushi
Aayushi - avatar
0
Um is there any context​? Special character or punctuation. It's a literal character not an escape or meta character.
26th Oct 2018, 6:49 AM
Jared Bird
Jared Bird - avatar