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
What are 3 types of structures?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
Why is c not oop?
What does %c do in c?
c program for searching a student details among 10 student details
why do some people write if(0 == x) instead of if(x == 0)?
Is javascript based on c?
How can you find out how much memory is available?
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
What is static function in c?
How do I use strcmp?
How to draw the flowchart for structure programs?
What does it mean when a pointer is used in an if statement?
What are the usage of pointer in c?
what are the 10 different models of writing an addition program in C language?