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

Why malloc is faster than calloc?

1060


What is meant by keywords in c?

1068


Can true be a variable name in c?

1035


Can variables be declared anywhere in c?

1084


differentiate built-in functions and user – defined functions.

1080


What is the translation phases used in c language?

1118


What is static memory allocation?

1169


How do you determine whether to use a stream function or a low-level function?

1119


How to implement a packet in C

2881


Want to know how to write a C program that connects to a MySQL server and checks if the InnoDB plug-in is installed on it. If so, your program should print the total number of disk writes by MySQL.

2049


Explain what does the function toupper() do?

1068


What is the difference between pure virtual function and virtual function?

1114


What is meant by errors and debugging?

1099


Is anything faster than c?

1009


What are the difference between a free-standing and a hosted environment?

1284