< Prev
Next >



C++ strncmp() function




The strncmp() is a string manipulation function defined in the cstring header file, which works on a string which is stored in a c-style char array and it is used to compare the first n number of characters of a string to the another string.




Signature of strncmp() function


int ( char * str1, const char * str2, size_t num )

Please subscribe our social media channels for notifications, we post a new article everyday.

Decodejava Google+ Page Decodejava Facebook Page  DecodeJava Twitter Page

Coming Next
-
Python

Ad2