0
Can someone please help me understand this code deeply please it's about constants in C language under data types...
#include <stdio.h> int main() { const double PI = 3.14; printf("%f", PI); return 0; }
1 Resposta
0
When you declare a constant, you use the const reserved word. In this code you declare a constant of type double, which is called PI. Then, in the printer function, you pass %d because the constant is double and then you pass the constant PI
Hope it helped :)