literals tag

7 questions


1 answers
129 views
0
To assign a string that spans multiple lines at once

I'm just going to copy and paste the sentence from the file.There is an error in my code.And the color changes in the middle What should I do?using namespace std;int main(){ const char* msg = hello m...

1 years ago

2 answers
104 views
0
What is the difference between string object and string in Java?

String str = new String(abc);WowString str = abc;What's the difference?


1 answers
129 views
0
How do you create an empty set object?

Like this, list/tuple/dict has a literal meaning empty <list/tuple/dict>I wonder if there's such a thing as a set.

1 years ago

1 answers
91 views
0
I have a question about c language scanf %c, literal!

#include <stdio.h>int main(){ char str[] = hello; scanf(%c, str[0]); return; }This code is failing. hello is literal and cannot be accessed, but I want to change the information of str by saving...

1 years ago

1 answers
113 views
0
JavaReferences and strings

The reference variable that stores the class's address value is System.out.print(), which shows the address value at the time of output.The reference variable referring to the string class is System.o...


1 answers
165 views
0
What does C's >>= operation do?

The school gave it to me as an assignmentI don't know what this code is doing or why it's running normally>>>=What is this doing?Why is the output ????#include <stdio.h>int main(){ int ...


1 answers
79 views
0
How do you write binary?

I know that hexadecimal numbers have 0x in front of it, and octal numbers have 0 in front of itSo what do we do to express it's binary


© 2024 OneMinuteCode. All rights reserved.