answersLogoWhite

0


Best Answer

In C++ all names (including variables) must be declared before they can be used.

User Avatar

Wiki User

11y ago
This answer is:
User Avatar

Add your answer:

Earn +20 pts
Q: Why you need to declare variable 1st in turbo c plus plus?
Write your answer...
Submit
Still have questions?
magnify glass
imp
Related questions

Do I need structure of turbo c plus plus?

Yes.


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;


In c plus plus are local declarations visible to the function in a program?

If you declare a variable inside of any fuction (except main) it will not be available to other functions.


How the turbo c plus plus use in the computer?

How the turbo c plus plus use what in the computer.


What is the differentiate of turbo c from turbo c plus plus?

Turbo C compiles c source. turbo c++ compiles c++ source code.


Who develop the turbo c plus plus?

The company Borland developed Turbo C++.


What is turbo c plus plus?

Turbo C++ is Borland's integrated development environment (IDE).


2(x-3) plus 4x plus 3?

You need to open the parentheses first. Then you can combine like terms (terms that have the same variable, or lack of variable).


To develop a taj mahal using c-language programming in turbo c plus plus?

turbo c


What is the variable of x plus 10 plus 4x-35?

What is the variable of x plus 10 plus 4x-35?


What is a reference variable in c plus plus?

A reference variable in C++ is a formal parameter of a function call that automatically dereferences itself, as if it were a pointer, into a reference to the original value in the calling routine. You declare the reference type in the function declaration and prototype, but the compiler automatically adds the reference (&) operator on call, and the dereference (*) operator on use.


Can you control ports through c plus plus?

Yes. If the ports are memory mapped, then you simply need a pointer to that address, and you need to declare the pointer as volatile. If they are I/O mapped, then you need to create an _asm{} block.