Take FREE!! Online Mettl Mock Test to Crack TechM and Other Companies Written Exams.
Get Off-Campus Placement Jobs Info !!!
Practice Tech Mahindra Essay Topics

Program Discussion :: Strings

Home > Programs > Strings

3 / 59

Write an efficient program to implement the strlen, strcmp, strcpy, strncmp function.

Answer:

#include 

 #include
using namespace std;
int main()
{
     int bin_no1 = "0110111";                                                                                          
     int bin_no2= "01110111";
     int len=3;
     int strlength1= strlen (bin_no1)   ;     
    int strlength2= strlen (bin_no2)   ;     
    cout

Asked In ::

Post Your Answer Here:

Language:

Post Your Reply Here:



Language:

Post Your Reply Here:



Language:

Post Your Reply Here: