0 votes 0 votes Which functions of string include the null terminator '\0'? I know strlen() doesn't include the '\0' in giving the length, does anyone know which other functions include and which do not include? Programming in C programming-in-c virtual-gate-test-series + – Purple asked Jan 10, 2017 edited Apr 14, 2019 by Lakshman Bhaiya Purple 359 views answer comment Share Follow See 1 comment See all 1 1 comment reply yankur9 commented Jan 10, 2017 reply Follow Share try sizeof() :) 0 votes 0 votes Please log in or register to add a comment.
1 votes 1 votes char includeNull[] = "hii"; printf("%d", sizeof(includeNull)); OUTPUT : 4 robin sharma answered Jan 20, 2017 robin sharma comment Share Follow See all 0 reply Please log in or register to add a comment.