What is string :: npos?



What is string :: npos?..

Answer / Rahul Sirohi

In C++, `std::string::npos` is a predefined constant that represents the maximum index value of a std::string object. It is used to indicate the end of a string when searching for a substring.

Is This Answer Correct ?    0 Yes 0 No

Post New Answer

More Core Java Interview Questions

What is the difference between delete and delete[]

4 Answers   Amazon,


How to validate the request (Eg:user name and password) in session(http session)? not in LDAP server ?

1 Answers   Saksoft,


Is java same as core java?

1 Answers  


What is anti pattern in cyber security?

1 Answers  


When should you make a function static?

1 Answers  


what is ejb? what is the importance of ejb?

2 Answers   Photon,


What is Map interface?

3 Answers   Wipro,


Which java.util classes and interfaces support event handling?

2 Answers  


How many types of exception can occur in a java program?

1 Answers  


How do you replace all in word?

1 Answers  


How do weakhashmap works?

1 Answers  


Write a code to create a trigger to call a stored procedure

1 Answers  


Categories