what is difference between single inverted and double inverted in programming languages
C++
[...] In common usage, there may be a distinction between the
single and double quotation marks in this context; often, single
quotation marks are used to embrace single characters, while
double quotation marks enclose whole words or phrases[.]
Simply: according to the charcter check for string and char
1. if char , then use '';
2. if string , then use "";n C/C++, when a character array is initialized with a double quoted
string and array size is not specified, compiler automatically
allocates one extra space for string terminator ‘\0’.
From my experience :
1. It returns the Pointer to where call is occured( " " ).
2. vice-versa for (single inverted comma - ' ' );
Also in C++:
- Title
- c++ string
- Category
- C++
- Title
- c++ vector size
- Category
- C++
- Title
- how to print a 2d array in c++
- Category
- C++
- Title
- c++ map insert
- Category
- C++
- Title
- gfg right view of tree
- Category
- C++
- Title
- sort function in vector c++ stl
- Category
- C++
- Title
- how to print to the serial monitor arduino
- Category
- C++
- Title
- calling by reference and pointers c++
- Category
- C++
- Title
- min heap priority queue c++
- Category
- C++
- Title
- how to input multiple lines of a file in c++
- Category
- C++
- Title
- c++ string to int
- Category
- C++
- Title
- how to extract substring from string in c++
- Category
- C++
- Title
- find all the palindrome substring in a given string
- Category
- C++
- Title
- c++ give options
- Category
- C++
- Title
- c++ default constructor remove
- Category
- C++
- Title
- access last element in vector in c++
- Category
- C++
- Title
- array as parameter c++
- Category
- C++
- Title
- including cpp header file in c++
- Category
- C++
- Title
- stoi c++
- Category
- C++
- Title
- how to declare a function in c++
- Category
- C++
- Title
- error: invalid use of template-name without an argument list
- Category
- C++
- Title
- shortest path with bfs in c++
- Category
- C++
- Title
- c++ files
- Category
- C++
- Title
- opencv compile c++
- Category
- C++
- Title
- c++ initialization list
- Category
- C++
- Title
- lopping over an array c++
- Category
- C++
- Title
- how to return a vector c++
- Category
- C++
- Title
- findung the mode in c++
- Category
- C++
- Title
- variable sized arrays hackerrank solution in c++
- Category
- C++
- Title
- namespace c++
- Category
- C++
- Title
- how to know the correct class of objects cpp
- Category
- C++
- Title
- create a 2d array c++
- Category
- C++
- Title
- c++ function return array
- Category
- C++
- Title
- first prime numbers
- Category
- C++
- Title
- converting char to int in c++
- Category
- C++
- Title
- string comparison in c++
- Category
- C++
- Title
- how to get size of 2d vector in c++
- Category
- C++
- Title
- accept the noun and the output of plural c++
- Category
- C++
- Title
- c++ file to string
- Category
- C++
- Title
- c++ sql
- Category
- C++
- Title
- string substr c++
- Category
- C++
- Title
- c++ get type name of object
- Category
- C++
- Title
- class is replace by structure
- Category
- C++
- Title
- find in vector in c++
- Category
- C++
- Title
- system("pause") note working c++
- Category
- C++
- Title
- how to show c++ binary files in sublime text
- Category
- C++
- Title
- monotonic deque
- Category
- C++
- Title
- FInd the element which appears more than n/2 times C++
- Category
- C++
- Title
- nth_element c++
- Category
- C++
- Title
- Merge k sorted linked lists and return it as one sorted list.
- Category
- C++
- Title
- user input c++
- Category
- C++
- Title
- passing array to function c++ pointer
- Category
- C++
- Title
- matrix transpose tiling
- Category
- C++
- Title
- while loops
- Category
- C++
- Title
- c++ calculator program using switch case
- Category
- C++
- Title
- time function c++
- Category
- C++
- Title
- pointer related problems dangling/wild pointers c++
- Category
- C++
- Title
- char to string c++
- Category
- C++
- Title
- formal parameter c++
- Category
- C++
- Title
- what does the modularity mean in c++
- Category
- C++
- Title
- std string find character c++
- Category
- C++
- Title
- how to append an element to an array in cpp
- Category
- C++
- Title
- fail() in c++
- Category
- C++
- Title
- bfs in C++
- Category
- C++
- Title
- std::substring
- Category
- C++
- Title
- pair in c++
- Category
- C++
- Title
- what is a header in c++
- Category
- C++
- Title
- % operator in c++
- Category
- C++
- Title
- sqrt in c++
- Category
- C++
- Title
- how to use wasd c++
- Category
- C++
- Title
- how to put a class in a .h file c++
- Category
- C++
- Title
- get index of value c++
- Category
- C++
- Title
- how to grab all of user input c++
- Category
- C++
- Title
- subtracting two large numbers
- Category
- C++
- Title
- set precision in c++
- Category
- C++
- Title
- sort a pair using c++ stl
- Category
- C++
- Title
- c++ string to stream
- Category
- C++
- Title
- c++ random numbers
- Category
- C++
- Title
- initialize 2d array c++
- Category
- C++
- Title
- how to get a letter from the user c++ string
- Category
- C++
- Title
- array sort c++
- Category
- C++
- Title
- singleton c++
- Category
- C++
- Title
- preorder traversal c++
- Category
- C++
- Title
- container class in c++
- Category
- C++
- Title
- can you use a return to print a string when referencing an integer c++
- Category
- C++
- Title
- c++ sort
- Category
- C++
- Title
- Runtime Error: Runtime ErrorFloating-point exception (SIGFPE
- Category
- C++
- Title
- sleep system function linux c++
- Category
- C++
- Title
- c++ initialize a vector
- Category
- C++
- Title
- string to upper c++
- Category
- C++
- Title
- c++ delete dynamically allocated array
- Category
- C++
- Title
- how to get os name in c++
- Category
- C++
- Title
- in c, is class uppercase or lowercase
- Category
- C++
- Title
- runtime array size c++
- Category
- C++
- Title
- c++ do you not inherit constructor
- Category
- C++
- Title
- compare function in sort c++ stl
- Category
- C++
- Title
- array 2d to 1d
- Category
- C++
- Title
- Create a program that finds the minimum value in these numbers
- Category
- C++
- Title
- c++ string to integer without stoi
- Category
- C++
- Title
- Runtime Error: Runtime ErrorBad memory access (SIGBUS)
- Category
- C++