Home Basic Loop Array string Function Pointer Contact STUDY

AHF    C    PROGRAM    SOLVING

Programming tips

Test expression



Header file



Specifer



" ; " after loop



Comment




String_ read and display




// AHF C PROGRAM SOLVING

//solving here 2_D   ARRAY 	programming problem

#include #define pf printf int main() { char str[100]; int i; pf("Enter the string: "); gets(str); pf("\nThe string is:\t"); for(i=0;str[i]!='\0';i++) pf("%c",str[i]); return 0; }
OUTPUT:


© 2018 - All rights reserved