How to test whether two strings are equal or not ?



How to test whether two strings are equal or not ?..

Answer / sandeep

Use strcmp(s1,s2) and see the corresponding int values..Its
either 0 or 1.

Is This Answer Correct ?    1 Yes 1 No

Post New Answer

More JavaScript Code Interview Questions

function to combine two or more arrays

0 Answers   Aricent,


code to images to rollover

0 Answers  


advance the focus to next consecutive fields when Enter Key is pressed

0 Answers   TCS,


how to pass data between pages using Frames

0 Answers  


code to display a Countdown Timer (dynamic)

2 Answers  






validation code / function to allow only NUmbers in a text box

3 Answers   GE,


Reading which Character Key was pressed

1 Answers  


how to create an anonymous function

0 Answers  


code to set the main window's size

0 Answers  


determine which Element received an Event

0 Answers  


code to detect versions of different browsers like internet explorer, netscape, mozilla, opera etc

0 Answers   HCL,


Create a Menu that can be activated while clicking on Right Mouse button

0 Answers   Nest, TCS,


Categories
  • PHP Code Interview Questions PHP Code (33)
  • JSP Code Interview Questions JSP Code (6)
  • ASP Code Interview Questions ASP Code (5)
  • CGI Perl Code Interview Questions CGI Perl Code (3)
  • JavaScript Code Interview Questions JavaScript Code (63)
  • VB Script Code Interview Questions VB Script Code (20)
  • Shell Script Code Interview Questions Shell Script Code (31)
  • Python Code Interview Questions Python Code (34)
  • WinRunner Code Interview Questions WinRunner Code (1)
  • HTML DHTML XHTML Code Interview Questions HTML DHTML XHTML Code (13)
  • XML Interview Questions XML (43)
  • Scripts_Markup Code AllOther Interview Questions Scripts_Markup Code AllOther (5)