New course!
Every coder should learn
Generative AI!
Try a free lesson
Courses
Courses
Code Compiler
Code Compiler
Discuss
Get Pro
Teams
Log in
Register
Menu
Q&A Discussions
Search
Search
Ask a question
Ask a question
Can I declare a variable by 2 data type?
c++
data-types
1 Vote
9 Answers
5th Jul 2016, 9:24 AM
Tien Thanh Nguyen
swap two number without the help of other variable
c++
1 Vote
7 Answers
5th Jul 2016, 7:19 AM
DEATH WALKER
can we add one integer variable and one string variable????
data-types
php
2 Votes
4 Answers
3rd Jul 2016, 6:37 AM
Manvitha Gottipati
Variable types are not declared while setting a value. then how or what number of bytes are being allocated in the memory?
python
variables
1 Vote
3 Answers
2nd Jul 2016, 7:30 PM
Protiti sengupta
How to save and load datas into a variable from another file
c++
variables
1 Vote
3 Answers
2nd Jul 2016, 5:55 PM
Leonardo Riglietti
can i declare the variable with name "@yash"
c++
variables
0 Votes
8 Answers
2nd Jul 2016, 2:59 PM
DEATH WALKER
i want to show value that is retrieved from database and stored in variable to text field .<input type=text name="" value =""> i want to show value in it..what is the method to print in python script
python
0 Votes
7 Answers
2nd Jul 2016, 9:42 AM
swapnil Singh
Can anyone tell me how to use a variable in the pow function in c language.
c
c++
0 Votes
7 Answers
2nd Jul 2016, 9:06 AM
Infinity
variable is instantiated means
instance
java
0 Votes
2 Answers
2nd Jul 2016, 9:04 AM
Mehul Kadam
Does auto-implemented property create private variable of the same type?
c#
properties
1 Vote
1 Answer
28th Jun 2016, 7:27 PM
Jacek Chwiła
I didn't undrstand how to set a environment variable
java
jdk
1 Vote
3 Answers
28th Jun 2016, 3:38 AM
aryaman
Will the code work if "error" is replaced by None?Can a value be assigned to a variable when it is assigned 'None' initially?
dictionaries
python
1 Vote
2 Answers
27th Jun 2016, 7:15 AM
Ashray
How to make a user enter sentences in a str variable untill he inputs 0 (zero)?
functions
python
1 Vote
2 Answers
27th Jun 2016, 4:20 AM
Aakash Vyas
Can anyone tell me how to assign a variable to a function?
functions
python
variables
0 Votes
4 Answers
26th Jun 2016, 4:37 PM
teambrj
How to set or clear a bit in a variable without effecting other bits? and also don't use if-else
c++
if-statements
1 Vote
6 Answers
26th Jun 2016, 8:17 AM
Ramesh Marisa
what is the (technical) difference between a pointer variable (<datatype>*) and a reference variable (<datatype>&). which one should be preferred?
c++
pointers
3 Votes
2 Answers
25th Jun 2016, 2:09 PM
multimodcrafter
defining a variable x?
javascript
objects
0 Votes
11 Answers
22nd Jun 2016, 6:00 PM
Hesham Ismail Ismail
if a pointer has its data typ as integer then how can it store the memory address of a variable which may contain character?
c++
pointers
3 Votes
7 Answers
20th Jun 2016, 7:45 PM
Monic@
is declaring the name of a variable while using the "while loop" important?
c++
0 Votes
2 Answers
20th Jun 2016, 6:27 AM
souvik singha
There is a rule that expalin that a variable can not be upadated twice in an expression. if such things happen the result depends upon the implementation of that specific compiler .
c++
operators
0 Votes
2 Answers
20th Jun 2016, 1:12 AM
Utpal Kumar
about the variabile name rules, if I try to call a variable "cout", or any other reserved word, will it result into an error, or is it just a good practice?
c++
variables
1 Vote
4 Answers
15th Jun 2016, 3:02 PM
naghree
What is the difference between variable declaration and variable definition?
c++
variables
5 Votes
3 Answers
15th Jun 2016, 10:54 AM
Boris Atanasov
given three integer numbers and knowing that they form a valid triangle as (int side1, int side2, int side3), how can I use c++ library function max () to write a single statement that assigns the maximum of three sides to the variable sidemax;
c++
1 Vote
2 Answers
15th Jun 2016, 3:56 AM
Abdulai Torfik
Why variable name did not declare with no in name?
c#
variables
0 Votes
2 Answers
14th Jun 2016, 2:04 PM
Muhammad Waqas Bilal
Why do we need pointer? What is the real use of it in real life? I do not get why we need to use pointer while we can just refer to the variable itself?
c++
pointers
2 Votes
8 Answers
12th Jun 2016, 6:04 PM
Moona Arita
why we r using different variable lik cx cy fr circle.. x y fr rect and x1 y1 fr line???
html
html5
svg
2 Votes
3 Answers
8th Jun 2016, 3:21 AM
Govindhrazz Allu
In PHP don't exist the 'char' type? If I declare a variable with one character it is classificate with a String?
data-types
php
0 Votes
1 Answer
30th May 2016, 11:56 PM
Diego Veronez Nunes
we could have print the value of age variable directly in the class, then why use this.age ?
c#
this
0 Votes
2 Answers
4th May 2016, 6:57 AM
Umesh Kuniyal
How are the values of value types found (by the program that is using them) if we don't have their memory address stored? E.g., what is the address in memory of the variable x = 10?
c#
objects
2 Votes
2 Answers
4th May 2016, 12:41 AM
Mark
Is $_SERVER variable an array?
php
predefined-variables
4 Votes
2 Answers
16th Apr 2016, 7:55 AM
Ajay Verma
Shouldn't a variable start with a lowercase like "personAge"?
c#
variables
0 Votes
2 Answers
14th Apr 2016, 3:26 PM
Elijah (ELi)
Why does the NUMBER variable still change although i declared it as final?
final
java
0 Votes
3 Answers
14th Apr 2016, 11:59 AM
Pavitran
I understand how declaring a variable as static affects its relationship with objects, but I'm having difficulty understanding how doing so with methods has an affect.
java
static
2 Votes
1 Answer
30th Mar 2016, 12:10 AM
xDD90x
How do you differentiate a method and a variable of an object?
javascript
methods
objects
1 Vote
3 Answers
11th Mar 2016, 4:47 PM
yujjjkjh
I don't quite get this, it means that if I have an array, say 3 elements, when I say foreach($elements as $element) every one of this three elements will go one by one to the variable $element?
loops
php
2 Votes
3 Answers
10th Mar 2016, 9:02 PM
Eduardo Tito
The type of variable is auto-defined by assigning a value to it? because in java, we have to declare the type of variable before assigning value
data-types
php
0 Votes
2 Answers
6th Mar 2016, 4:07 PM
ThisTNTSquid
The type of variable is auto-defined by assigning a value to it? because in java, we have to declare the type of variable before assigning value
data-types
php
1 Vote
2 Answers
6th Mar 2016, 4:07 PM
ThisTNTSquid
I wonder. Since we don't need to declare a variable, does this mean that a variable which first I assign a numeric value can be assigned later with, for example, string value?
data-types
php
3 Votes
8 Answers
2nd Mar 2016, 4:41 AM
Ade Kurniawan
What if I create a private variable inside the main class, would that mean it'll be available in other classes? What do private variables even do?
access-modifiers
java
5 Votes
3 Answers
27th Feb 2016, 11:30 AM
Pavitran
Can someone explain me again variable variable?
php
variables
0 Votes
4 Answers
25th Feb 2016, 12:26 AM
Mrigank Chaurasia
What is the practical value of initiating more than one variable inside the first statement of a for loop?
javascript
loops
0 Votes
3 Answers
29th Jan 2016, 1:20 PM
Erlin Goce
For a variable parameter, is var written before or after its external parameter name?
functions
swift
0 Votes
2 Answers
16th Jan 2016, 3:13 AM
Sharon Chen
global variable can't be used anywhere in the program?
php
variables
0 Votes
5 Answers
15th Jan 2016, 7:43 AM
Vikas Kumar Choudhary
What happens if I just declare the variable "sum" but don't put the initial value? For instance, if instead of saying "int sum = 0;" , I said " int sum;"
c++
variables
1 Vote
3 Answers
3rd Jan 2016, 10:16 PM
Lucas
Why would İ prefer to use a variable rather than a constant?
c++
constants
0 Votes
6 Answers
29th Dec 2015, 6:25 PM
Kevin Kiambe
What are the defaults? If you just state a variable int x; What is the default size and is it automatically signed or unsigned?
c++
data-types
1 Vote
4 Answers
2nd Nov 2015, 4:51 PM
OTheB
Why bother with the return of a variable that never gets document.write?
functions
javascript
0 Votes
2 Answers
9th Oct 2015, 5:32 AM
aaron urban
Is it possible to initialize more than 1 variable in a single for loop?!
c++
loops
0 Votes
5 Answers
14th Jul 2015, 9:28 AM
Jagmeet Singh Khanuja
Ask a question
Ask a question
Ask a question
Ask a question
< Previous
1
...
48
49
Next >
Hot today
How to use ‘variables’ in a ‘python’ string
1 Votes
Help me learn how to use .value in Javascript please!
1 Votes
How to get Kotlin certificate here
2 Votes
Array of Object to Object using reduce()
0 Votes
String
0 Votes
I don't understand why g1, g2 & g3 values is not aligned with Group 1, Group 2 and Group 3 which is the expected output..
0 Votes
The output is not matching the code.
0 Votes
How are you spost to do animashon
0 Votes
Fix code
0 Votes
I am first time user,
0 Votes