#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 / mastan vali.shaik

25Ramco25Systems

Is This Answer Correct ?    2 Yes 13 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What is the best way to store flag values in a program?

583


How can I get random integers in a certain range?

619


How can I remove the leading spaces from a string?

638


Tell us bitwise shift operators?

603


What language is lisp written in?

625






Given two strings S1 and S2. Delete from S2 all those characters which occur in S1 also and finally create a clean S2 with the relevant characters deleted.

839


How will you delete a node in DLL?

688


What are the advantages of using new operator as compared to the function malloc ()?

762


What is #include in c?

604


What is the difference between text and binary modes?

650


Difference between MAC vs. IP Addressing

644


Explain how do I determine whether a character is numeric, alphabetic, and so on?

658


Program will then find the largest of three numbers using nested if-else statements. User is prompted to enter three numbers. Program will find the largest number and display it on the screen. All three numbers entered by the user are also displayed. If user enters 21, 33, and 5, the output should be as follows: You entered: 21, 33 and 5. The largest number is 33.

1016


What is class and object in c?

593


If errno contains a nonzero number, is there an error?

810