#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 / v.srinivasan
#include<stdio.h>
main()
{
char *p1,*p2;
p1 = (char *)malloc(25);
p2 = (char *)malloc(25);
strcpy(p1,"Ramco");
strcpy(p2,"Systems");
strcat(p1,p2);
printf("%s",p1);
}
the output will be RamcoSystems
we don't need the following libraries under Linux 2.6
#include<string.h> and
#include<alloc.h>
to run this program.
Is This Answer Correct ? | 5 Yes | 0 No |
Post New Answer View All Answers
What are file streams?
Explain what math functions are available for integers? For floating point?
What is a struct c#?
A c program to display count values from 0 to 100 and flash each digit for a secong.reset the counter after it reaches 100.use for loop,. pls guys hepl me.. :(
What are header files? What are their uses?
What does the message "automatic aggregate intialization is an ansi feature" mean?
What is a program flowchart and explain how does it help in writing a program?
Can you think of a logic behind the game minesweeper.
Are the variables argc and argv are local to main?
Can we increase size of array in c?
What is the difference between text and binary modes?
Why c is procedure oriented?
What is structure in c definition?
What is the best way of making my program efficient?
write a program to find the given number is prime or not