C++ New And Delete Question:
Download Questions PDF

In C++ if program executed successfully, following value will be returned to the calling process, if nothing specified in return statement?

a) 0
b) 1
c) -1
d) 2

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

Answer:

a) 0

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

Previous QuestionNext Question
In C++ if return statements is written in a non-void function without any specified value, what will be return value of the function?

a) undefined
b) 1
c) 0
d) -1
Individual characters in a string are accessed as following:

a) cout << S.at(i);
b) cout << S[i];
c) both a) and b)
d) None