+ 2
What is a declaration for a programe
how to write a declaration syntax
6 ответов
+ 5
Well, I guess variable declaration in C++ mostly done following this format:
<data type> <variable name>;
Example:
int i;
float f;
char c;
You can also declare multiple variables of the same type on a single line like:
int a, b, c;
float a, b, c;
I'm also still learning C++, hope I gave you correct example.
Hth, cmiiw
+ 4
I see you're learning C++, I think variable declaration is covered in the course, or you are asking something else? explain yourself clearly so others can help you.
+ 4
You're welcome.
+ 2
yes iam asking fot that only
+ 2
thanks
+ 2
😅