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
Explain what is meant by 'bit masking'?
Why cant I open a file by its explicit path?
What is the difference between struct and typedef struct in c?
Can you write the function prototype, definition and mention the other requirements.
Write a program to identify if a given binary tree is balanced or not.
simple program of graphics and their output display
What is ambagious result in C? explain with an example.
What is sizeof int?
Is this program statement valid? INT = 10.50;
How many types of operator or there in c?
Take an MxN matrice from user and then sum upper diagonal in a variable and lower diagonal in a separate variables. Print the result
What is NULL pointer?
Write a program to generate random numbers in c?
why use "return" statement a) on executing the return statement it immediately transfers the control back to the calling program b) it returns the value present in the parentheses return, to the calling program c) a & b d) none of the above
What are the different types of objects used in c?