answersLogoWhite

0

you have to give a statement in the following syntax

datatype variable;

User Avatar

Alden Kling

Lvl 10
2y ago

What else can I help you with?

Related Questions

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.";


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 happen if you declare a global variable as static in C language?

When declared as static, the variable has internal linkage and its scope is restricted to the *.c file in which it is declared. It becomes visible to all functions within the file where it is declared and not to functions in other files.


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.


When do you declare a variable?

You declare a variable when you create it by specifying its datatype and name in a programming language. This tells the compiler or interpreter to allocate memory for the variable. Variables must be declared before they can be used in most programming languages.


How do you use define in C?

Just type declare then the variable that you desire to assigned a certain constant value on it. Just type declare then the variable that you desire to assigned a certain constant value on it.


What is a variable in C language?

variable which is used to specify the values and also we can that values through the variable name


What is puts in c language?

printf("%s",variable);


What is typdef in c language?

It is a keyword generally used to rename data types, using typedef you can create alias which can be used to declare the variable. e.g. typedef struct node { int info; struct node *next; }Node; now to declare variable of struct node type we can use the word Node in place of struct node


Member modifier 'public' must precede member type and name means in computer C language?

While you declaring the global variable you should declare it correctly... This problem mostly arise because any one of the data type in global should not have 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.


Is it corrrect to declare a variable in c or c plus plus as two or three words for eg int seg no?

No., If you want to declare you jus use _ in between so the declaration will be like int seg_no;