#include<stdio.h>
main()
{
char *p1;
char *p2;
p1=(char *) malloc(25);
p2=(char *) malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
Tell me the output?
Answer Posted / sumant
the output will be RamcoSystems
but we need 2 more libraries
#include<string.h> and
#include<alloc.h>
to run this program. in else case it will not work.
| Is This Answer Correct ? | 6 Yes | 0 No |
Post New Answer View All Answers
What are pointers? Why are they used?
What is the scope of local variable in c?
Create a simple code fragment that will swap the values of two variables num1 and num2.
Why array is used in c?
Is struct oop?
What is this infamous null pointer, anyway?
Write a Program to accept different goods with the number, price and date of purchase and display them
List the variables are used for writing doubly linked list program.
What does char * * argv mean in c?
List out few of the applications that make use of Multilinked Structures?
Is c# a good language?
Explain how can I prevent another program from modifying part of a file that I am modifying?
What are qualifiers in c?
What is a union?
What are the advantages of using new operator as compared to the function malloc ()?