Program to illustrate the itoa( ) function


#include<iostream.h>
#include<conio.h>
#include<stdlib.h>                      // defines the itoa( ) function
void main ( )
{
    int i = 102 ;
    char *string ;
    itoa ( i, string, 10 ) ;
    cout<<"integer = "<<i<<"\t string = "<<string;
    getch ( ) ;
}

0 comments:

Post a Comment

 
 
 
 


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