Is there no gcc warning when a literal declared as long is assigned to an int in c? – Debian
I can compile and run a program that assigns a long int literal, albeit it one that would fit into an int, to an int variable. $ cat assign-long-to-int.c #include <stdio.h> int main(void){ int i = 1234L; //assign long to…