#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


Please Help Members By Posting Answers For Below Questions

WRITE A CODE IN C TO SEARCH A FILE FROM NOTEPAD FILE.

2032


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?

582


Should I use symbolic names like true and false for boolean constants, or plain 1 and 0?

602


Explain how does free() know explain how much memory to release?

577


How can you increase the size of a dynamically allocated array?

651






how do you programme Carrier Sense Multiple Access

1524


What is #line?

615


Describe the modifier in c?

610


What are the primitive data types in c?

582


Is null valid for pointers to functions?

616


any "C" function by default returns an a) int value b) float value c) char value d) a & b

673


Write a program to print ASCII code for a given digit.

692


What is the difference between fread buffer() and fwrite buffer()?

676


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

630


What are structural members?

576