[Updated] Goldman Sachs Aptitude Test Questions and Answers
Practice List of TCS Digital Coding Questions !!!
Take 50+ FREE!! Online Data Interpretation Mock test to crack any Exams.

Program Discussion :: Strings

Home > Programs > Strings

23 / 60

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: