google.com, pub-6167773875660516, DIRECT, f08c47fec0942fa0 Write a program to illustrate gets and puts() function in c - 2nd puc computer science

Write a program to illustrate gets and puts() function in c

 Write a program to illustrate gets and puts() function in c

#include<stdio.h>

#include<conio.h>

void main()

{

char book[20];

clrscr();

printf("Enter the name of the book: ");

gets(book);

printf("Entered book name is ");

puts(book);

getch();

}

Output:

Enter the name of the book: Programming in c

Entered book name is Programming in c

Write a program to illustrate gets and puts() function in c  Write a program to illustrate gets and puts() function in c Reviewed by Vision Academy on December 07, 2021 Rating: 5

No comments:

CheckOut

Powered by Blogger.