code for copying two strings with out strcpy() function.
Answer Posted / suman_kotte
#inclue<stdio.h>
main()
{
char str1[10],str2[10];
int i=0;
printf("enter the str1");
gets(str1);
while(str1[i]!='\0')
{
str2[i]=str1[i];
i++;
}
puts(str2);
}
| Is This Answer Correct ? | 19 Yes | 2 No |
Post New Answer View All Answers
What is equivalent to ++i+++j?
how to print electricity bill according to following charges first 100 units -1rs per unit for next 200 units-1.50 rs per unit without using conditions
Why functions are used in c?
Which driver is a pure java driver
Where in memory are my variables stored?
What is the difference between far and near in c?
What is the return type of sizeof?
What is c variable?
Why is c known as a mother language?
What is static memory allocation? Explain
What are the main characteristics of c language describe the structure of ac program?
Can you write the function prototype, definition and mention the other requirements.
Is c is a procedural language?
What is the use of structure padding in c?
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.