Is there are different between List x; and List x(); in C++

Recommended Answers

All 2 Replies

Is there are different between List x; and List x(); in C++

ans-yes bcoz x(); isa function & list x; is a data type.

Please don't bring these old threads, that have been posted in the wrong spot, back to life.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.