(Move to ...)
▼
Program to illustrate the ltoa( ) function
#include<iostream.h>
#include<conio.h>
#include<stdlib.h> // defines the ltoa( ) function
void main ( )
{
long i = 50223 ;
char *string ;
ltoa ( i, string, 10 ) ;
cout << "\n integer = " << i << "\t string = " << string;
getch () ;
}
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment