Can we define function inside main in c++?


No Answer is Posted For this Question
Be the First to Post Answer

Post New Answer

More C++ General Interview Questions

How many lines of code you have written for a single program?

4 Answers   BoA,


What is data hiding c++?

0 Answers  


Explain shallow copy?

0 Answers  


write the programme that convert a interger to biniry number

1 Answers   Amazon,


How would you obtain segment and offset addresses from a far address of a memory location?

0 Answers  






What is guard code in c++?

0 Answers  


What and all can a compiler provides by default?

3 Answers   Accenture, HP,


int main() { int i ,a[i]; i = 0; a[i] = 10; cout<< a[i] << endl; return 0; } What will be output of this program?

11 Answers   HCL, Mphasis,


Is c++ built on c?

0 Answers  


Why is it difficult to store linked list in an array?

6 Answers   Infosys, Lucent,


Can you be bale to identify between straight- through and cross- over cable wiring? And in what case do you use straight- through and cross-over?

0 Answers  


class basex { int x; public: void setx(int y) {x=y;} }; class derived : basex {}; What is the access level for the member function "setx" in the class "derived" above? a) private b) local c) global d) public e) protected

3 Answers   Quark,


Categories