Rotate your phone or change to desktop for better experience

Rotate your phone or change to desktop for better experience

printinf size and character of a string using strlen

 #include <stdio.h>

#include <string.h>


int main()

{

    char str[5]={ABCDE};


    

    printf("size of string is %ld\n",strlen(str));

    printf("character is string str are -> %s",str);

    

    return 0;

}

Post a Comment

0 Comments