#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
WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.
Write a program to input the price of 1 burger and the number of burgers eaten by a group of friends .print the total amount to be paid by the group?
Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?
Explain how does free() know explain how much memory to release?
How can you increase the size of a dynamically allocated array?
how do you programme Carrier Sense Multiple Access
What is #line?
Describe the modifier in c?
What are the primitive data types in c?
Is null valid for pointers to functions?
any "C" function by default returns an a) int value b) float value c) char value d) a & b
Write a program to print ASCII code for a given digit.
What is the difference between fread buffer() and fwrite buffer()?
A routine usually part of the operation system that loads a program into memory prior to execution a) linker b) loader c) preprocessor d) compiler
What are structural members?