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 192 views
1 answer 196 views
196 views asked Aug 5, 2019 by avibootz
1 answer 239 views
1 answer 230 views
1 answer 127 views
1 answer 182 views
...