Run ❯
Get your
own
website
×
Change Orientation
#include
int main() { const int myNum = 15; myNum = 10; printf("%d", myNum); return 0; }
prog.c: In function 'main':
prog.c:5:18: error: assignment of read-only variable 'myNum'
5 | myNum = 10;
| ^