How to convert int to long in C

1 Answer

0 votes
#include <stdio.h> 
   
int main(void) 
{ 
	int i = 8293;
	long l = (long)i;
     
    printf("%ld\n", l); 
     
    return 0; 
} 
  
  
  
/*
run:
  
8293
 
*/

 



answered Aug 6, 2019 by avibootz

Related questions

1 answer 187 views
1 answer 193 views
193 views asked Aug 5, 2019 by avibootz
1 answer 232 views
1 answer 225 views
1 answer 125 views
1 answer 180 views
...