i made the following program but its not working can someone tell me where i did mistake

#include <iostream>
#include <cstdlib>
#include<cmath>
#include<iomanip>
#include <cstring>
int myStrlen (const char* s);
int main()
{
cout<<myStrlen;
}
int myStrlen (const char* str1)
{
char str[25] = "How";
strlen(str);
return strlen(str);
}

You have not called the function myStrlen, you have output its location in memory, that is myStrlen is not a function call it is a pointer to the function you need myStrlen("Hello World") for a function call.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.