Horje
c++ length of char* Code Example
c++ length of char*
#include <iostream>
#include <string.h>

using namespace std;

int main()
{
    char *str = "ABC";
    cout << strlen(str) << endl;
    return 0;
}
c++ length of char*
3. strlen(char*) will not include the null character at the end




Cpp

Related
c++ check palindrome Code Example c++ check palindrome Code Example
how to take space separated input in c++ Code Example how to take space separated input in c++ Code Example
length of array in cpp Code Example length of array in cpp Code Example
Palindrome Checker Code Example Palindrome Checker Code Example
min heap priority queue c++ Code Example min heap priority queue c++ Code Example

Type:
Code Example
Category:
Coding
Sub Category:
Code Example
Uploaded by:
Admin
Views:
8