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
What is && in c programming?
how can use subset in c program and give more example
The program will first compute the tax you owe based on your income. User is prompted to enter income. Program will compute the total amount of tax owed based on the following: Income Tax 0 - $45,000 = 0.15 x income $45,001 - $90,000 = 6750 + 0.20 x (income – 45000) $90,001 - $140,000 = 15750 + 0.26 x (income – 90000) $140,001 - $200,000 = 28750 + 0.29 x (income – 140000) Greater than $200,000 = 46150 + 0.33 x (income – 200000) Dollar amounts should be in dollars and cents (float point numbers with two decimals shown). Tax is displayed on the screen.
Explain enumerated types.
a c code by using memory allocation for add ,multiply of sprase matrixes
What is the sizeof () a pointer?
please send me the code for multiplying sparse matrix using c
State the difference between realloc and free.
What is pointer to pointer in c?
What are header files why are they important?
Can we declare a function inside a function in c?
How can I open a file so that other programs can update it at the same time?
What is calloc() function?
What are types of structure?
What is masking?