#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main ()
{
long val;
char str[20];
strcpy(str, "999999999");
val = atol(str); // atoi gibi çalışır sadece long veri tipi gibi daha büyük string sayıları alabilmek için kullanılır girilen string ifadenin geri dönüş değeri olarak tam sayı üretir.
return(0);
}
Categories: C language
4 Comments
goaldaddy · 17/01/2025 at 00:18
… [Trackback]
[…] Information on that Topic: durukanbal.com/2021/01/16/c-atol-function-example/ […]
Info · 25/01/2025 at 00:55
… [Trackback]
[…] Find More to that Topic: durukanbal.com/2021/01/16/c-atol-function-example/ […]
fox888 · 25/01/2025 at 17:24
… [Trackback]
[…] Read More Information here on that Topic: durukanbal.com/2021/01/16/c-atol-function-example/ […]
รับเขียนแบบบ้าน · 06/02/2025 at 10:14
… [Trackback]
[…] Read More to that Topic: durukanbal.com/2021/01/16/c-atol-function-example/ […]