This code is not working,even though i wrote exact code what preteek sir did
int n=sizeof(n)/sizeof(int);
this is wrong
correct statement is
int n=sizeof(a)/sizeof(int);
int n=sizeof(n)/sizeof(int);
this is wrong
correct statement is
int n=sizeof(a)/sizeof(int);