+ 1

I just dont know why some codes do not work on solo learn... But works on the pc.. Take the code below as an example

#include <stdio.h> // THIS IS TO GIVE YOU A CLEAR UNDERSTANDING OF POINTERS AND POINTINT TO A POINTER // I REALLY HOPE THIS HELPS YOU OUT... E N J O Y      int main() {        //This is the declaration of the variable and pointers     int a=78;     int *b=NULL;     int **c=NULL;     int ***d=NULL;     int ****e=NULL;           //This is the definition of the variables and pointers     b=&a;     c=&b;     d=&c;     e=&d;             //Output of the values of variables and pointers     printf("\t\tThe value of a = %d\n\n",a);     printf("\t\tThe value of b = %d\n\n",*b);     printf("\t\ttThe value of c = %d\n\n",**c);     printf("\t\tThe value of d = %d\n\n",***d);     printf("\t\tThe value of e = %d\n\n",****e);         return 0; }

12th Aug 2019, 12:15 AM
cerebrocerberus
cerebrocerberus - avatar
3 Respostas
+ 2
This works perfectly on dev c compiler ...but not here...any reason why..?
12th Aug 2019, 12:15 AM
cerebrocerberus
cerebrocerberus - avatar
+ 2
CERBERUS Your code works perfectly, it's just that Soloearn playground will givw you compilation error if some specific warnings are raised too many times for some reason. The compiler I use raise treating unicode character as whitespace warning, so if you copy-paste this code from somewhere else, try to rewrite everything instead
12th Aug 2019, 1:13 AM
Agent_I
Agent_I - avatar
+ 1
Thanks..very helpful
12th Aug 2019, 1:15 AM
cerebrocerberus
cerebrocerberus - avatar