Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

" ; " after loop



Specifer



Test expression



Header file



Iterative statement




String_ find string length




// AHF C PROGRAM SOLVING

//solving here 2_D   ARRAY 	programming problem

#include #define pf printf int main() { int i,length; char str[100]; pf("Enter the string: "); gets(str); //counting the length of the string length=strlen(str); pf("\nThe length of the string = %d",length); return 0; }
OUTPUT:


© 2018 - All rights reserved