Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

#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


Please Help Members By Posting Answers For Below Questions

Is main is a keyword in c?

1129


what is the syallabus of computer science students in group- 1?

2321


hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm

2021


Do you know the purpose of 'register' keyword?

1023


How can you determine the maximum value that a numeric variable can hold?

1235


Why & is used in c?

1192


Multiply an Integer Number by 2 Without Using Multiplication Operator

768


What are the types of data structures in c?

1155


What are data structures in c and how to use them?

1172


How do you list a file’s date and time?

1070


"%u" unsigned integer print the a) address of variable b) value of variable c) name of a variable d) none of the above

1025


write a program in c language to print your bio-data on the screen by using functions.

6789


Write a program of prime number using recursion.

1091


Write program to remove duplicate in an array?

1083


Can two or more operators such as and be combined in a single line of program code?

1375