Category: String
puts() in c i will implement. Main job of this function is to print a new line…
#include<stdio.h> int main() { char country[200]; int length; while(1==scanf(“%s”,country)) { length=string_length(country); printf(“length:%d\n”,length); } return 0; } int…
Lowercase to Uppercase #include<stdio.h> int main() { char country[]={‘b’,’a’,’n’,’g’,’l’,’a’,’d’,’e’,’s’,’h’}; int i,length; printf(“%s\n”,country); length=10; for(i=0;i<length;i++){ if(country[i]>=97 && country[i]<=122)…
Recent Comments