Program to illustrates gets( ) & puts( ) function



#include <iostream.h>
#include <conio.h>
#include<stdio.h>
void main( )
{
char str[20] ;
cout << "\n Enter any string :" ;
gets(str);
puts( " The string is  : " ) ;
puts(str) ;
               getch( );
           }

0 comments:

Post a Comment

 
 
 
 


Copyright © 2012 http://codeprecisely.blogspot.com. All rights reserved |Term of Use and Policies|