What is an array and a vector? How they different from each
other?

Answer Posted / prabir kumar

arrays have elements of same datatypes, but vector can have
elements of any types.

Is This Answer Correct ?    1 Yes 0 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What does sprintf return?

822


What does it mean that a method or field is “static”?

742


Is null a keyword in java?

753


What are encapsulation, inheritance and polymorphism?

745


For ease of programming you can consider the maze as a 2D array with colors represented by below integer and characters (in capital letters). • B - Black • W -White • G- Green • R- Red R B W B W W W W W W B W B B W W W W W W W B W B W W W B W W W W B B W W W B W W W B W W B B B B W B W B W W B W W W B W W W B B B W W B W W W B W W B W B W W W B W B W W W W B B W W W W B W W W W W G Shortest Route Problem: • Solution that finds the shortest Route between Red and Green  White will have 1 Weight.  Red and Green carry no weights.  Shortest path is the path with less weight when you add up the weights in the path.

1813


What is boolean query?

768


What is the flag in java?

805


Can interface be private in java?

774


Why do we need strings in java?

725


How to change value in arraylist java?

777


How much ram can a 64 bit processor theoretically?

689


What is an example of a boolean?

819


How do you declare an array in java?

768


What are filterstreams?

849


Where and how can you use a private constructor?

770