Can a program run without main function?


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

Post New Answer

More C++ General Interview Questions

What is using namespace std in c++?

0 Answers  


What are the implicit member functions of class?

0 Answers  


How the keyword struct is different from the keyword class in c++?

0 Answers  


What is the purpose of templates in c++?

0 Answers  


Shall we use 'free' to free memory assigned by new, What are the further consequences??

5 Answers   Symphony,






What is the use of object in c++?

0 Answers  


How do you define/declare constants in c++?

0 Answers  


What is design pattern?

2 Answers   Samsung,


Describe linked list using C++ with an example.

0 Answers  


why all c++ program must have default constructor?

6 Answers   IBM,


this is to swap to strings....but in output the whole strings are swapped leaving first as it is...why it is so #include<iostream.h> int main() { char a[]="ajeet"; char b[]="singh"; long x=*a; long y=*b; cout<<x<<":"<<y; x=x+y; y=x-y; x=x-y; *a=x; *b=y; cout<<x<<":"<<y; cout<<&a<<endl; cout<<&b<<endl; }

1 Answers  


Write a Program for dynamically intialize a 2 dimentional array. Eg:5x20, accept strings and check for vowels and display the no.finally free the space allocated .

0 Answers  


Categories