write a program to copy a string without using a string?
Answer Posted / j j ramesh
void main()
{
char str1[100],str2[100];
printf("ENTER THE STRING :");
gets(str1);
for(i=0;str1[i];i++)
str2[i] = str1[i]l
pritf("COPIED : %s",str2);
}
| Is This Answer Correct ? | 4 Yes | 1 No |
Post New Answer View All Answers
a way in which a pointer stores the address of a pointer which stores the value of the target value a) reference b) allocation c) multiple indirection d) none
How can I determine whether a machines byte order is big-endian or little-endian?
Why is extern used in c?
What is the best way of making my program efficient?
Is there any demerits of using pointer?
Which driver is a pure java driver
How can I get the current date or time of day in a c program?
What is a lvalue
What are pointers really good for, anyway?
Can the “if” function be used in comparing strings?
What is the stack in c?
List some basic data types in c?
can we have joblib in a proc ?
Can a pointer be volatile in c?
#define PRINT(int) printf("int = %d ",int) main() {< BR> intx,y,z; x=03;y=02;z=01; PRINT(x^x); z<<=3;PRINT(x); y>>=3;PRINT(y); }