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