answersLogoWhite

0


Best Answer

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

User Avatar

Wiki User

14y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is it corrrect to declare a variable in c or c plus plus as two or three words for eg int seg no?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

What is the reserved word in java programming language?

new is the key word which is used to create the instance of class.ex..class Data{psvmain(){Data d=new Data();/*now u can call the all the function in the data class with the help of d variable */}}


What two things must you normally specify in a variable declaration?

This is when you specify the name and type of the variable.Example:int number;The declaration line can also include an instantiation for that variable.Example:int number = 5;When you declare a variable or an object (particularly in OOP programming) , you set aside a chunk of memory space for the data to reside.


Variable that does not change?

Controlled or the Independent.


What is the name of the variable that describes data using words or numerals as labels?

The variable that describes data using words or numerals as labels is called a categorical variable.


Do you have to declare an accident that was not your fault?

Try gathering enough proof and choose the right words, and declare why it was not your fault.


What other words have the same meaning as declare?

decree


What is Variable Shadowing in Java?

In Java, there are three kinds of variables: local variables, instance variables, and class variables. Variables have their scopes. Different kinds of variables have different scopes. A variable is shadowed if there is another variable with the same name that is closer in scope. In other words, referring to the variable by name will use the one closest in scope, the one in the outer scope is shadowed.A Local Variable Shadows An Instance VariableInside a class method, when a local variable have the same name as one of the instance variable, the local variable shadows the instance variable inside the method block.


Words that contain root word vari?

variable


What part of speech is the words responding variable?

responding


What is an example sentence with the word dependent variable?

"dependent variable" comprises TWO words. Which word do you want in the sentence?


What is the degree of a variable in a monomial?

The number of times that the variable occurs as a factor in the monomial. In other words, the exponent of the variable, e.g., x² - x + 6 is 2nd degree.


What are static objects in java?

There is no separate entity as a static object in java. The static keyword in java is used to signify that the member (either a variable or a method) is not associated to an object instance of the class. It signifies the fact that the member belongs to the class as a whole. The words static and objects are opposites of one another so you cannot have a static object. However, you can declare an object as a class level variable which could be referred to as a static object but it will be referred to as a static or class variable and not a static object.