• Register

Recent posts tagged char

24 2 2 min.
In a SQL language, the datatype of a column simply means what type of value the column can hold i.e integers, char, long and etc. In that, there are two data types that appear to be the same but have key differences that we will discuss here.CHAR DAT...
posted Jun 8 Being human 148 points
32 1 2 min.
In C#, Array and string both are the reference type instead of value-type. By following the rule of the polymorphism, a cast operation between reference types doesn't change the run-time sort of the underlying object, it only changes the sort of ...
posted Jun 2 mhfaisal 262 points
0 0 2 min.
Char is the data type in which can store character types like alphabets. But we can also store numeric values and many more things. You may think what’s the difference then, the difference is only the data type of the variable. In this article ...
posted Sep 22, 2020 Lalit Kumar 1,240 points
0 0 1 min.
We use many variables in C++, the type of data a variable can hold is known as data type. They are defined in categories for example int stores integer type and char stores alphabets or character type.Character constants in C++ are always enclosed in...
posted Sep 19, 2020 Lalit Kumar 1,240 points
0 0 1 min.
ASCII (American Standard Code for Information Interchange) is a standard for electronic communication used for character encoding. All the keyboards are keymapped according to ASCII, they provide the standard to represent the keys of the keyboard in ...
posted Sep 19, 2020 Lalit Kumar 1,240 points
15 0 3 min.
Type of exceptions that can cause that handler to be entered is described by exception-declaration in a handler. Incomplete type, an abstract class type, or an rvalue reference type shall not be denoted by exception-declaration. And also it shall not...
posted Sep 9, 2020 Lalit Kumar 1,240 points
0 0 2 min.
The abbreviation char is used in C++ and other programming languages like C, Java and C# to mean a short form of character which is a data type that holds one character such as number or letter. For example, the value of a char variable cou...
posted Sep 6, 2020 Lalit Kumar 1,240 points
17 0 1 min.
We can perform different conversions between different variables like we can convert float variable to integer variable. And these conversions are really helpful in numerous ways. We can easily convert int to char but there is something to notice, ta...
posted Jul 5, 2020 Lalit Kumar 1,240 points
0 0 1 min.
In this article we are going to solve a programming question which is “How to remove the last character from a string in C++?”. Given a string then we have to remove the last character of each word in a string. For instance just assume we...
posted Jun 19, 2020 Lalit Kumar 1,240 points
0 0 1 min.
In this article we are going to solve a programming question which is “How to remove the first character from a string in C++?”. Given a string then we have to remove the first character of each word in a string. For instance just assume ...
posted Jun 19, 2020 Lalit Kumar 1,240 points
0 0 2 min.
The problem given to us is “Get the length of the char array in C++”. Basically we have given a char variable and char array. We have to find the size of the char variable and char array. For your convenience see this example if you didn&...
posted Jun 19, 2020 Lalit Kumar 1,240 points
0 0 2 min.
In this article we are going to write a program to check if the string is empty or not. And we are also going to discuss the method here. MethodsNot so good ideaYou can check if the string is empty or not by printing the string. If the output sh...
posted Jun 18, 2020 Lalit Kumar 1,240 points
0 0 1 min.
If you ever try to enter a digit inside a char variable, you will notice that it shows as if it is an i.e., digit. So, what if we are in the middle of a very big program and we don’t want integers inside the char. First we have to check if the ...
posted Jun 18, 2020 Lalit Kumar 1,240 points
0 0 3 min.
In this article, we are going to learn how to convert char to string in C++There are two things in this conversion, I mean you can convert a single character and also the array of char to string. But in this article, we are going to learn both of the...
posted May 12, 2020 Lalit Kumar 1,240 points
0 0 2 min.
In this article, we are going to learn how to convert string to char. What will happen when we convert string to char? It will return an array containing a sequence of characters as in string. There are many ways to convert string to char and those a...
posted May 10, 2020 Lalit Kumar 1,240 points
11 0 2 min.
 ASCII(American Standard Code for Information Interchange), is a standard for representing the characters like SI units is used for units in science. ASCII represents text characters. Every character has its own unique value. In today's arti...
posted May 4, 2020 Lalit Kumar 1,240 points
0 0 2 min.
What?In this blog, we are going to write a program for removing a character from a string. But this program is for removing a particular character from the string, all other programs like removing certain characters will be covered another time. This...
posted Apr 24, 2020 Lalit Kumar 1,240 points
6 0 2 min.
C++ invalid conversion from const char* to charA single constant char can only store one byte; it means one letter of the alphabet, not the whole string. If you try to do it, it will encounter errors.  All you are doing is attempting to add the ...
posted Apr 19, 2020 Lalit Kumar 1,240 points
17 0 1 min.
ISO C++ forbids converting a string constant to char*char* p = "abc";ProblemIn the given line of code, we defined an array of char* objects. We initialize pointers with string constants. But the compiler shows error and as the error explains itself, ...
posted Apr 16, 2020 Lalit Kumar 1,240 points
16 1 1 min.
Hi, I am new to this world of programming in java language. You might feel to check if a character is a number in java? I mean what is the best way to do it?Solution:I'm not sure if this is the best option or not, But this seems pretty simpl...
posted Mar 18, 2020 Gavin 15,250 points
To see more, click for the full list of questions or popular tags.