answersLogoWhite

0


Want this question answered?

Be notified when an answer is posted

Add your answer:

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

How you declare a variable in c language?

you have to give a statement in the following syntax datatype variable;


How do you declare variables and constants.explain with example?

Depends on the programming language you are using. I will give two simple examples. In Command Prompt and when creating a batch file, you declare a variable by entering the "set" command. You can use different switches to change the type of variable you are declaring. /p makes the variable able to accept user input. /a makes the variable a numerical expression. In Python, you declare a variable just by stating the name of the variable and its value. x = value.


How do you declare local and global variables in pseudo code?

Pseudocode is not a programming language (it's specifically intended for human interpretation), so there is no need to declare variables, you simply define them as and when you require them. For instance: Let x = 42 Let y = x * 2


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.


Why Java is called strongly typed language?

A strongly typed programming languages is one that requires the type of a variable to be explicitly stated. C is a strongly typed language. You must declare the type of data a variable will store for C to interpret it: int myVariable;myVariable = 25; Perl is a loosely typed language. There is no need to declare the variable type before using it: $myVariable = 25;$myVariable = "A String.";


Is possible to declare a variable in a method and declare it a main?

The same identifier (variable name) may be used for at most one variable in each scope. Each method has its own scope, in addition to the global scope which is accessible from all others. However, each scope would have a different variable than every other scope despite using the same name for it.


Can you declare a variable with abstract keyword?

no it is not possible


How do you declare an integer?

datatype variable name;


What is variable declarations?

A variable declaration is a math or programming term. A variable is an unnamed component. In the problem the wording will declare what the value of the variable is.


When you declare an variable in c language where it will be stored in the computer?

Nowhere, variables exist only during the program run. If you want permanent storage, use files.


Why variable name is not start with digit in programming language?

Because the compilers do not allow that, you would get a 'Syntax error' if you tried.(In FORTH, mind you, variable names can start with digits, for example:VARIABLE 0A ( declare variable )10 0A ! ( assign value )0A @ ( fetch value ))


Can you declare a static variable in a header file?

Yes.