Removing duplicate words from a string

Code
  1. span style="color: #ff0000;">"enter the string:

  2. ""len:%d

  3. ",len);

  4.         temp=strtok(arr," "" "" ""arr:%s"
Copyright GeekInterview.com


This is giving me runtime error why ?

Questions by pro_learner

Showing Answers 1 - 3 of 3 Answers

mangesh

  • Feb 18th, 2015
 

How can we failed procedure in normal plsql code.

  Was this answer useful?  Yes

Vipul Behl

  • Oct 3rd, 2015
 

There is an easier way to do this, you can easily do this by using string functions strtok and strstr. See the code.

Code
  1. #include<stdio.h>

  2. #include<string.h>

  3. "Enter the first string : ""Enter the second string : ");

  4.         gets(s2);

  5.        

  6.         token=strtok(s1," ""%s

  7. "" "

  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions