If you don't need to preserve the first string you could just iterate over the second string and copy each character onto the end of the first string, then return that
This is not a question.
Sure: int main (void) { puts ("Hello, world"); return 0; }
Here is an example program: class obj{ public: float p,n,r,si; friend void calc( obj temp); }; void calc( obj temp){ si = (p*n*r)/100; } The initialization and function calling is essential.
Not possible. Let's not forget than in C the followings are all operators:+, -+=, -=++, --=&, *, []function-call
yes we can run java program without using main. we can run program by declaring the variable static..
no
You can write a program without specifying its prototype when the function returns an integer.If the prototype is not mentioned the compiler thinks that the return type of the function used is integer.When making program which return integer you can ignore writing the protoype.
It is not possible. In C, any program must have at least one function to be able to compile and execute properly: the function main()
C programs do not function without functions.
It can be done via its address, for example: void function (void (*callback)(void)) { (*callback)(); }
This is not a question.
not possible dude
Use the 'search' function in the Start menu.
plz as soon as possible give me the program for shorting an array in asscending order without using any sort function in c++
Functions are very important in C++, as you can't write the simplest program to print hello without using a function. Overall you can say that function are building blocks of a C++ program. Functions can also be defined by the programmer to reduce program size.
I don't think its possible. Every C++ program must at least have the main function.
yes a C program can work without a main() function. Though its not the normal C code that you would be writing on ur gcc or turbo C compiler. for example Linux Source code ... does not have a main() function : for details u can visit: http://samarthonweb.blogspot.com/2009/08/c-programe-with-no-main-function.html