Could anyone please explain how the memory allocatio is done in case of double pointers?
int var = 10 ;
int *pvar = &var;
int **ppvar = &pvar;
here var is 10. and this will be stored in some memory say that is
1000 (i.e &var =1000)
to store &var we need a pointer ,
so we declared variable pvar then stored &var 1000 in that
pvar = 1000
now pvar is also a variable it also stores at some location
say that is 2000
&pvar = 2000
now i want to store the address of a poiner variable i require a pointer to pointer .
so i declared ppvar
ppvar is also a variable so it also gets some memory so lets say that is 3000
ppvar = 2000
&ppvar = 3000
now if i want to access either var or pvar i can do that by using ppvar
all gives you only 10
gives you 1000
gives you 2000
printf(" %u\n", &ppvar);
gives you 3000.
is it like the gstreamer or any way diffrent? which is most popular and has high demand in terms of job opportunities.
SDL is mainly for game development (and sometimes for other multimedia stuff as well) and is quite popular I think. Now, it depends on what kind of job you are looking for... If you are interested in making applications with GUI under Linux, I think GTK is very good. For 3D stuff, OpenGL is probably a "must-known", etc...