0
Array error
#include <stdio.h> int main() { int n; printf("Introduce el número de elementos: "); scanf("%d",&n); int mat[n]; return 0; } Why doesn"t this code accept 'mat' array? In other compilers accept it.
5 Antworten
+ 1
because it is unused. The compiler is throwing warning because it wants to tell you that if you are not going to use a variable/array then why are you even declaring it ?🤔🤔
either use that array or remove it.
+ 1
It's not error. It's a warning. Manuel Rondón
+ 1
Jayakrishna🇮🇳
yeah correct!
0
I mean in other compilers no warning no error.
0
May be, there others disabled warnings in settings.. And It has no errors.