*it is perfectly working in turbo c. can anyone explain how it can change the value of constant variable. *Thanking you
*With regards- Raghav garg Contact no. 9013201944 www.facebook.com/rock.raghavag B. tech (IT), 5th sem University School Of Information Technology Guru Govind Singh Indraprastha University Delhi* On Thu, Oct 6, 2011 at 9:52 AM, SUDHIR RAHEJA <raheja.sudhirah...@gmail.com>wrote: > its working.. > > #include<conio.h> > #include<stdio.h> > int main() > {const int a=123; > printf("%d\n",a); > > *(int *)&a=345; > printf("%d",a); > getch(); > > } > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to algogeeks@googlegroups.com. > To unsubscribe from this group, send email to > algogeeks+unsubscr...@googlegroups.com. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to algogeeks@googlegroups.com. To unsubscribe from this group, send email to algogeeks+unsubscr...@googlegroups.com. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.