answersLogoWhite

0

In C:

int pass_mark;

pass_mark = 45;

In C++:

int pass_mark {45};

User Avatar

Wiki User

10y ago

What else can I help you with?

Related Questions

What is a computer variables?

In a programming language, a variable is a name for a place where information is stored.


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 delete reference of an object?

This often happens automatically, when the variable that references an object goes out of scope. Alternatively, you can set the variable that refers to an object to some reserved value, such as NULL (details vary, depending on the programming language).This often happens automatically, when the variable that references an object goes out of scope. Alternatively, you can set the variable that refers to an object to some reserved value, such as NULL (details vary, depending on the programming language).This often happens automatically, when the variable that references an object goes out of scope. Alternatively, you can set the variable that refers to an object to some reserved value, such as NULL (details vary, depending on the programming language).This often happens automatically, when the variable that references an object goes out of scope. Alternatively, you can set the variable that refers to an object to some reserved value, such as NULL (details vary, depending on the programming language).


Why use static variable in programming language?

For C programming, the use of a static variable has two uses: One reason is to hide the variable from other modules. The scope of the static variable is limited to the compilation unit that it is described in. The second use of a static variable is to keep the value of the variable intact through the entire program execution unit.


How do you put a variable in an if statement in scratch?

It depends which programming/scripting language you use.In PHP it can look this way ($i is a variable):


What is php plus plus?

PHP++ is an object-oriented version of the PHP programming language. ++ is used in programming to increment a variable by one so it means an improved version of PHP.


What is swap in c plus plus programming language?

It is not a reserved word, so can be an identifier (name of a type/variable/function).


Is “C language” case sensitive programminIs “C language” case sensitive programming language If yes why and if no whyg language If yes why and if no why?

C is case sensitive, which means that, for example, $var and $VAR are not the same variable.


Translating an algorithm into a programming language is called?

Translating an algorithm into a programming language is called coding. A variable declaration tells the operating system to allocate storage space in RAM.


What is string variables?

A string variable is a programming language construct that holds text. For example, the text "The sky is blue" could be stored to a string variable, then later in the program, that text could be displayed.


Is it is true that the identifier and a variable in C programming language are same?

No. Identifier is a scientific name for the name.Variables, functions, types, etc -- each have an identifier.


What is a pointer in programming?

pointers are the variable which stores the address of another variable.