taking string as an input from the user using %c specifier Get link Facebook X Pinterest Email Other Apps November 08, 2023 #include<stdio.h>int main(){ char a[50]; char c; int i=0;while(c !='\n'){scanf("%c",&c); a[i]=c;i++;}a[i]='\0';puts(a);} Get link Facebook X Pinterest Email Other Apps Comments
Comments
Post a Comment