Sponsorlu Bağlantılar
This program prints length of string, for example consider the string "c programming" it's length is 13. Null character is not counted when calculating string length. To find string length we use strlen function of string.h.
C program to find string length
Download String length program.
Output of program:
You can also find string length using pointer or without strlen function. Following program shows how to achieve this.
C program to find string length without strlen
C program to find length of a string using pointers.
Function to find string length
Sponsorlu Bağlantılar
Hiç yorum yok:
Yorum Gönder