Can a program run without main function?
No Answer is Posted For this Question
Be the First to Post Answer
What is using namespace std in c++?
What are the implicit member functions of class?
How the keyword struct is different from the keyword class in c++?
What is the purpose of templates in c++?
Shall we use 'free' to free memory assigned by new, What are the further consequences??
What is the use of object in c++?
How do you define/declare constants in c++?
What is design pattern?
Describe linked list using C++ with an example.
why all c++ program must have default constructor?
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; }
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 .