0
why am i getting error?
#include <stdio.h> #include<string.h> int main() { string a; return 0; }
4 Réponses
+ 6
string is not a supported data type in C programming .
In C programming, string is a character of array.
For declaring a string variable, you should use this syntax :
char string_name [size];
example : char a [30]; OR char a [];
+ 2
everything seems to be fine
except for an unused variable warning
+ 2
thanku Sreejith andKeval Dhanani
+ 1
or just change stdio.h to iostream