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

code for copying two strings with out strcpy() function.

Answer Posted / ali

#include<iostream.h>
void main(void)
{
char first[]="sajid";
char second[6];
int index;
for(index=0;index<6;index++)
{
second[index]=first[index];
}
cout<<second;
}

Is This Answer Correct ?    8 Yes 6 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

What are 3 types of structures?

1072


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

2028


Why is c not oop?

984


What does %c do in c?

1001


c program for searching a student details among 10 student details

2093


why do some people write if(0 == x) instead of if(x == 0)?

1086


Is javascript based on c?

1075


How can you find out how much memory is available?

1073


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

1109


What is static function in c?

1124


How do I use strcmp?

1086


How to draw the flowchart for structure programs?

9348


What does it mean when a pointer is used in an if statement?

1117


What are the usage of pointer in c?

1201


what are the 10 different models of writing an addition program in C language?

1903