What is the meaning of a delimiter ??? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
+ 1

What is the meaning of a delimiter ???

What is the default delimeter in java, python, c and c++? Please answer me...

25th Feb 2019, 6:06 AM
Sushma Sharma
1 Answer
+ 6
A "delimiter" in its general sense, is an object defined as the boundary which separates two objects. The delimiter in the English language, for example, is the whitespace. Whitespaces are used to separate words from each other. Withoutspaces,thisreallywouldbehardtoread! In programming, delimiters can be used to specify the end of a string, or certain characters in a string which can be used to break a string into a list of many strings, etc. We call these characters "delimiting characters". C-style strings end with '\0', and '\0' is considered a delimiter. In Python, you can specify the delimiter to be used to tokenize a string. str.split('.') #splits a string to sentences wherever a full stop is present. https://www.geeksforgeeks.org/python-string-split/
25th Feb 2019, 6:18 AM
Fermi
Fermi - avatar