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
How many levels of pointers can you have?
Explain what are bus errors, memory faults, and core dumps?
How can I make it pause before closing the program output window?
Explain what are run-time errors?
What are runtime error?
Does c have circular shift operators?
Explain what is page thrashing?
write a program fibonacci series and palindrome program in c
Explain what is the concatenation operator?
hw can we delete an internal node of binary search tree the internal node has child node..plz write progarm
FORMATTED INPUT/OUTPUT functions are a) scanf() and printf() b) gets() and puts() c) getchar() and putchar() d) all the above
How will you declare an array of three function pointers where each function receives two ints and returns a float?
Explain what does the function toupper() do?
What is a null pointer in c?
What is the use of pragma in embedded c?