Difference between strdup and strcpy in c language?
Answer Posted / kalai
strcpy - copy a string to a location YOU created (you create the location, make sure that the source string will have enough room there and afterwards use strcpy to copy)
strdup - copy a string to a location that will be created by the function. The function will allocate space, make sure that your string will fit there and copy the string. Will return a pointer to the created area.
| Is This Answer Correct ? | 3 Yes | 0 No |
Post New Answer View All Answers
which field is comparitively very best , today and in future while considering the following : ELECTRONICS [OR] NETWORKING
Whet is KCFT and difference between CFM and KCFT
Requesting for AMVI genaral studies syllabus
A rectangular beam section of 300 mm width and 500 mm effective depth is reinforced with 4 bars of 20 mm diameter, what shear reinforcement is required to resist 200 kN shear (use working stress method)?
What is the difference between "type testing" and "product qualification"?
how to cable size by Amp with example
i am satish i want to preapare for group-1 exams so please help me?
how to create user name stape by stape in cisco router {with command}
Tell me about a time when you had too many things to do and you were required to prioritize your tasks
what is rapid application development
HI i have 2 year manual testing exp from MNC in pune but due to some reason i am looking job in testing . Friends hepl me to get the job i am not getting calls. alim24@gmail.com.09860643281
what is advantages and disadvantages of vlan?
why you are suitable to work here???? plzz give me the ans f this Q. i was told to write 200 words on the spot....
How do you reset or reseed the IDENTITY column?
find the salary of an employee where employee number is known