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

any C program contains only one function, it must be a) void () b) main () c) message () d) abc ()

1130


What is meant by type specifiers?

1140


Which is better malloc or calloc?

1110


Is it better to use a macro or a function?

1167


What is the difference between typedef struct and struct?

1114


Explain what is wrong with this statement? Myname = ?robin?;

1593


List the difference between a 'copy constructor' and a 'assignment operator' in C?

1095


Why main is used in c?

1079


How to Throw some light on the splay trees?

1066


Explain how can I manipulate strings of multibyte characters?

1209


how can i access hard disk address(physical address)? are we access hard disk by using far,near or huge pointer? if yes then please explain.....

1796


What are the types of type specifiers?

1047


What is meant by operator precedence?

1156


Why is c used in embedded systems?

1127


What are Macros? What are its advantages and disadvantages?

1168