My name is max, m a student studying programming, well other day i got an assignment ,in which i could'nt get 2 q. ,one of them was Wht is dynamic initialization of variables? ,well i know abt static variables , i searched on cplusplus.com also , but could'nt find the dynamic variables , also i need a programme in c++ to sort an array using pointers , does dynamic variables simply means declaration of variables locally as it is done in c++ ?and the code for my programme is like i have reached tilll i ask for an array to be sorted ,then i store it in a pointer ,the problem is how do i sort an array in a pointer ,pls xplain with the code if u please.
when i say :
void main(int a, intb)
like just the fact tht i have declared a,b, to b of int type when i use it ,and not in the beginning like we do in C ,makes these variable dynamic ?