• Register
0 votes


I am new in programming and my logic is not good, can anyone give the right solution?
How to declare a character variable named c?
7 5 3
5,380 points

Please log in or register to answer this question.

1 Answer

0 votes


We can declare character variable named c as 

char c;
8 6 2
10,530 points

Related questions

0 votes
2 answers 88 views
Problems: I am new to programming, I need help, can anyone help me? Declare a variable isACustomer suitable for representing a true or false value?
asked Feb 14, 2020 maddi86 5.4k points
0 votes
1 answer 3 views
Problem : Can somebody please tell me program of swapping of two numbers without using third variable in c?
asked Apr 3 Madhav96 2.3k points
0 votes
1 answer 26 views
Problem: My problem is the following: I have a class Nodo, which has as an attribute an array of pointers toto its same type (as to make a tree) and then I have a child class NodoAvlthat must inherit that attribute but the pointers must point to the same type , that is, point to NodoAvl. ... = T ()): Node <T> (data) {} int altu () {return alt;} }; Is there a way to do this? Thanks in advance.
asked Jan 1 sasha 16.2k points
0 votes
1 answer 4 views
Please help me if anyone have idea about C++ end a program !
asked Mar 12 sadi1982 36.3k points
0 votes
1 answer 30 views
Problem: I have recently learned about the functions in C++ and I want to write a function that has three string parameters and returns the smallest string of all according to its length. How can I do that? This question might seem nonsense so I apologize for being so dumb. Thanks!
asked Feb 27 Code Learner 9.2k points
0 votes
1 answer 14 views
Problem: I am trying to write a program that calculates the average of scores in 5 subjects and prints the average and the lowest score of all. I tried the following program, but it is not given the correct average: #include<iostream> #include<conio.h> using namespace std; int ... "<<lowest; } It gives 0 as average no matter what values I input. Please guide me about what I am doing wrong. Thanks!
asked Feb 27 Code Learner 9.2k points
0 votes
1 answer 17 views
Problem: How do we write a program that prints a triangle, rectangle, square and a inverted triangle of stars on the screen using loops?
asked Feb 27 Code Learner 9.2k points
0 votes
1 answer 13 views
Problem: Hello! I need to write a program that takes string input from the user and removes all the spaces from the string. Following is my attempt. It is not giving the desired output: #include <iostream> #include <string.h> using namespace std; int main() { ... following output: Enter a sentence:This is My Program This I do not understand why this is not printing the whole sentence. Any help?
asked Feb 27 Code Learner 9.2k points
0 votes
1 answer 42 views
Problem: Declare a reference variable of type File named myFile?
asked Apr 6, 2020 ArifulIslam 7.5k points
1 vote
2 answers 42 views
Problem: Declare a variable named myMenu suitable for holding references to Menu objects?
asked Mar 23, 2020 ArifulIslam 7.5k points