Golgappa.net | Golgappa.org | BagIndia.net | BodyIndia.Com | CabIndia.net | CarsBikes.net | CarsBikes.org | CashIndia.net | ConsumerIndia.net | CookingIndia.net | DataIndia.net | DealIndia.net | EmailIndia.net | FirstTablet.com | FirstTourist.com | ForsaleIndia.net | IndiaBody.Com | IndiaCab.net | IndiaCash.net | IndiaModel.net | KidForum.net | OfficeIndia.net | PaysIndia.com | RestaurantIndia.net | RestaurantsIndia.net | SaleForum.net | SellForum.net | SoldIndia.com | StarIndia.net | TomatoCab.com | TomatoCabs.com | TownIndia.com
Interested to Buy Any Domain ? << Click Here >> for more details...

How to access or modify the const variable in c ?

Answer Posted / vignesh1988i

const. variable cannot be modified........ if you declare an
variable as:
const char i=90;
throught the program 'i' cant be modified
but #define macro can replace const.. and that macro can be
modified.... but its disadvantage is it will blindly
substitute the data which is #defined.......

Is This Answer Correct ?    21 Yes 9 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can you tell whether a program was compiled using c versus c++?

1043


What do you mean by a sequential access file?

1039


What is hashing in c language?

1183


What is difference between arrays and pointers?

1010


The % symbol has a special use in a printf statement. How would you place this character as part of the output on the screen?

1218


which type of aspect you want from the student.

2111


How to write a code for reverse of string without using string functions?

2072


What is pass by reference in functions?

768


What's a good way to check for "close enough" floating-point equality?

1092


Explain what math functions are available for integers? For floating point?

1060


Which header file is essential for using strcmp function?

1420


What is "Duff's Device"?

1108


What is the equivalent code of the following statement in WHILE LOOP format?

1245


What is %d used for?

990


What is array in C

1097