answersLogoWhite

0

Is the word main an illegal variable name in C PLUS PLUS?

Updated: 8/16/2019
User Avatar

Jacob11701

Lvl 1
15y ago

Best Answer

I can tell you that it is not an illegal variable name in C. I do not currently have a C++ compiler installed, but I would assume that it would also be valid in C++.

User Avatar

Wiki User

15y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Is the word main an illegal variable name in C PLUS PLUS?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

How do you access global variable from within the main function when the local variable is of the same name?

When you acess a global variable inside main function you must use the same name, because the variable declared as global can be accessed by any function/procedure on the class where it was defined.


What is the scientific name of the main item to conduct the experiment?

The main item of an experiment is called a variable!!


What makes for a good or bad variable name in C plus plus programming languages?

A good variable name is one that is clear, related to the data it stores. Also, you should try to avoid confusions with other variables.


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).


Why does typing SHIFTf4name will not highlight or register as a variable in notepad plus plus coding in php?

In php a variable is declared using $ sign for eg. $name or $sport= 'Volleyball';. If you are not using this sign it won't work.


Which operator is allow to access hidden global variable in c plus plus?

A hidden global variable must be one that has its scope blocked by a local variable of the same name. To access the hidden variable, use the scope resolution operator ::, such as is ::variable_name. If there is another reason for the hidden status, please clarify and restate the question.


Main meaning of turbo c plus plus?

Name of a compiler (and IDE) from Borland.


What is the name for a graph of variable X and variable Y?

the name for x variable is indepent name for y variable is depent


How can you write your name on c plus plus turbo v3.0?

#include<iostream> int main() { std::cout << "Your name"; }


What is another name responding variable?

Another name for responding variable is dependent variable.


What is another name for responding variable?

Another name for responding variable is dependent variable.


What is a catergoric variable?

a catergoric variable is a variable that has a name and can be labled