Skip to content
IT Nursery
  • Home
  • Programming
    • Mac / IOS
    • Android
    • Web Applications
    • PHP
    • Java
    • C
    • C++
  • DataBase
    • MySQL
  • CMS
    • WordPress
  • System and Network
    • Serverfault

string-literals

String literals: Where do they go?

by IT Nursery

I am interested in where string literals get allocated/stored. I did find one intriguing answer here, saying: Defining a string inline actually embeds … Read more

Tags c, memory, string-literals

python: SyntaxError: EOL while scanning string literal

by IT Nursery

I have the above-mentioned error in s1=”some very long string…………” Does anyone know what I am doing wrong? 1Best Answer 17

Tags python, string, string-literals

Windows path in Python

by IT Nursery

What is the best way to represent a Windows directory, for example “C:\meshes\as”? I have been trying to modify a script but it … Read more

Tags path, python, string-literals

Single quotes vs. double quotes in C or C++

by IT Nursery

When should I use single quotes and double quotes in C or C++ programming? 1Best Answer 14

Tags c, char, string-literals, syntax

Difference between string object and string literal [duplicate]

by IT Nursery

This question already has answers here: What is the difference between “text” and new String(“text”)? (12 answers) Closed 8 years ago. What is … Read more

Tags java, string, string-literals

How to split a string literal across multiple lines in C / Objective-C?

by IT Nursery

I have a pretty long sqlite query: const char *sql_query = “SELECT statuses.word_id FROM lang1_words, statuses WHERE statuses.word_id = lang1_words.word_id ORDER BY lang1_words.word … Read more

Tags c, objective-c, string-literals

How to add percent sign to NSString

by IT Nursery

I want to have a percentage sign in my string after a digit. Something like this: 75%. How can I have this done? … Read more

Tags nsstring, objective-c, string-literals

C++ multiline string literal

by IT Nursery

Is there any way to have multi-line plain-text, constant literals in C++, à la Perl? Maybe some parsing trick with #includeing a file? … Read more

Tags c, string-literals

Insert text with single quotes in PostgreSQL

by IT Nursery

I have a table test(id,name). I need to insert values like: user’s log, ‘my user’, customer’s. insert into test values (1,’user’s log’); insert … Read more

Tags postgresql, quotes, sql, string-literals

Difference between string object and string literal

by IT Nursery

When you use a string literal the string can be interned, but when you use new String(“…”) you get a new string object. In this example … Read more

Tags java, string, string-literals

Recent Posts

  • Advice for improving internal dashboard [closed]
  • grep : ‘+’ special character
  • File location for Syslogs in Centos machine
  • How to collect users’ task completion times?
  • “service {FOO} start” vs. “/etc/init.d/{FOO} start”? [closed]
IT Nursery
Creative Commons License
This work is licensed under a Creative Commons Attribution-ShareAlike 4.0 International License.

Important Link

  • About
  • Privacy Policy
  • Contact

IT Nursery

The Goal of ITNursery Engaging the world to foster innovation through aggregate information. Our Question Answer post, blog information, products and tools help developers and technologists in life and at work.

copyright © 2023 All Right Reserved | IT NurSery