+ 2

What is a declaration for a programe

how to write a declaration syntax

18th Sep 2017, 6:57 AM
Ddhruv
Ddhruv - avatar
6 Antworten
+ 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
18th Sep 2017, 9:43 AM
Ipang
+ 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.
18th Sep 2017, 9:28 AM
Ipang
+ 4
You're welcome.
18th Sep 2017, 9:58 AM
Ipang
+ 2
yes iam asking fot that only
18th Sep 2017, 9:35 AM
Ddhruv
Ddhruv - avatar
+ 2
thanks
18th Sep 2017, 9:57 AM
Ddhruv
Ddhruv - avatar
+ 2
😅
18th Sep 2017, 11:59 AM
Ddhruv
Ddhruv - avatar