answersLogoWhite

0


Best Answer

datatype variable name;

User Avatar

Wiki User

โˆ™ 2012-09-05 01:28:35
This answer is:
User Avatar
Study guides

Can you get your high school transcript online

What did Dante Alighieri write about

What should you do if you do not know what career to pursue

What are the education requirements to work at Pizza Hut

โžก๏ธ
See all cards
4.44
โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…โ˜†โ˜…
57 Reviews

Add your answer:

Earn +20 pts
Q: How do you declare an integer variable?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you declare an integer?

datatype variable name;


Can you declare printf for integer variable?

printf is declared in stdio.hFormat specifier for an integer value is %d.


What is used to declare variables in Visual Basic?

declaration of variable is dim a as integer


How would you write Visual Basic Code to declare an Integer variable called intNumber?

Dim intNumber As Integer


What are the examples of pseudocode?

declare integer a = 5 declare integer b = 2 declare integer c = 3 declare integer result set result = a + b * c display result


What are the purpose of data type integer?

It is used to declare that something will use only integer (whole number) values.an integer variable stores only integer valuesan integer function returns only integer valuesan integer parameter to a function or procedure can pass only integer valuesetc.


What is variable definition in c language?

variable definition means to declare the variable with its value. for example:- int i=10; this statement is a combination of declaration of integer i and assign its value to it,so it is a definition statement Note: assigning a value is not essential.


What is the code required to convert an integer variable to a string variable in Java?

There are several different methods to convert an integer variable to a string variable in Java. For example, one can use the following code to convert an integer variable to a string variable: Integer.toString(number)


What does dim means in vb6?

Dim is used to declare a variable, such as: Dim x as integer It is comparable to var x:int in action script. Dim is a short form for dimension. Dim can also be like saying "Let x = 1". Except you can declare the variable as anything it allows.


How do you declare variables in c plus plus?

You declare a variable by first defining its data type and then its name followed by a semi-colon. Here is an example: int variable; The example above declares an uninitialized integer variable. You can initialize the variable by giving it a value such as "int variable = 1;". It is important to initialize your variables, because you can get errors when executing your program that the variable does not have a value or is uninitialized. Variables that are uninitialized have whatever garbage value happens to be when the program is executed. Here are all of the data types that a variable can be: *int - integer value *char - character value *bool - boolean value


(variable) = 34?

Integer


How do you declare a variable in C programming?

You declare a variable in C by declaring the variables type followed by its name. A declaration is also a statement, thus you end the declaration with a semi-colon. You may also include an optional initialiser in a variable declaration. int x; // declare an uninitialised integer named x. int y = 42; // declare an initialised integer named y with initial value 42. Note that you must initialise all variables before you use them. In the above example, we can initialise x via assignment: x = 100; Now we can use x in other expressions.

People also asked