Dec 22 2010 04:49 AM 7917 24 Constant Variable Value Vinod G S How will you change the value of a constant variable in C? somgupta Profile Answers by somgupta Questions by somgupta Sep 10th, 2011 We can not change the constant value sapan Sep 8th, 2011 Code#include<stdio.h> #include<conio.h> int main() { const int a=10; int *p=&a; printf("before modification a=%d ",a); *p=12; printf("after modification a=%d",a); getch(); return 0; } Answer Question Select Best Answer
Dec 22 2010 04:49 AM 7917 24 Constant Variable Value Vinod G S How will you change the value of a constant variable in C? somgupta Profile Answers by somgupta Questions by somgupta Sep 10th, 2011 We can not change the constant value sapan Sep 8th, 2011 Code#include<stdio.h> #include<conio.h> int main() { const int a=10; int *p=&a; printf("before modification a=%d ",a); *p=12; printf("after modification a=%d",a); getch(); return 0; } Answer Question Select Best Answer
somgupta Profile Answers by somgupta Questions by somgupta Sep 10th, 2011 We can not change the constant value
sapan Sep 8th, 2011 Code#include<stdio.h> #include<conio.h> int main() { const int a=10; int *p=&a; printf("before modification a=%d ",a); *p=12; printf("after modification a=%d",a); getch(); return 0; }