C++ New And Delete Question:
Download Questions PDF

Which of the following are valid array declaration?

a) char str1[3] = "ab"
b) char str1[3] = "abc"
c) char str1[2] = "ab"
d) char str1[0] = "ab"

C++ New And Delete Interview Question
C++ New And Delete Interview Question

Answer:

a) char str1[3] = "ab"

Download C++ New And Delete Interview Questions And Answers PDF

Previous QuestionNext Question
Which of the following are valid array declaration?

a) int num(5)
b) float avg[5]
c) double[5] marks
d) counter int[5]
C++ supports ….

a) constant pointer
b) pointer to a constant
c) None of above
d) Both of above