#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 does != Mean in c?
Write a Program to accept different goods with the number, price and date of purchase and display them
What is a shell structure examples?
What are unions in c?
What header files do I need in order to define the standard library functions I use?
Describe the header file and its usage in c programming?
Why do we use main function?
What is the difference between a function and a method in c?
How are structure passing and returning implemented?
Why is python slower than c?
What is getche() function?
Which is better pointer or array?
What are the 4 types of organizational structures?
What is the difference between class and object in c?
What is array of pointers to string?