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 / 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

What are pointers? Why are they used?

1183


What is the scope of local variable in c?

1133


Create a simple code fragment that will swap the values of two variables num1 and num2.

1289


Why array is used in c?

1016


Is struct oop?

1008


What is this infamous null pointer, anyway?

1057


Write a Program to accept different goods with the number, price and date of purchase and display them

6237


List the variables are used for writing doubly linked list program.

2034


What does char * * argv mean in c?

1070


List out few of the applications that make use of Multilinked Structures?

2197


Is c# a good language?

1012


Explain how can I prevent another program from modifying part of a file that I am modifying?

1092


What are qualifiers in c?

1034


What is a union?

1037


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

1350