10 January 2022

Character

 #include<stdio.h>

#include<conio.h>


void main()

{

int i;

char ch[97];

clrscr();


printf("Enter your string: ");

 // scanf("%[^\n]s", ch);

 // printf("\n\n\nYour entered string is %s", ch);


gets(ch);

puts(ch);


getch();


}

No comments:

Post a Comment