How to access or modify the const variable in c ?

Answer Posted / vijay kumar (mainpuri)

Answer of #6 , output is wrong

correct out is given below :

Value is: 20
Value is: 20

(above output based on turbo c++ IDE)
Hence, const value can't be change.

Is This Answer Correct ?    15 Yes 5 No



Post New Answer       View All Answers


Please Help Members By Posting Answers For Below Questions

How can a program be made to print the line number where an error occurs?

652


What is typeof in c?

609


Who is the founder of c language?

686


What is unsigned int in c?

560


What is New modifiers?

669






printf(), scanf() these are a) library functions b) userdefined functions c) system functions d) they are not functions

636


How can I handle floating-point exceptions gracefully?

636


how to solve "unable to open stdio.h and conio.h header files in windows 7 by using Dos-box software

2800


Not all reserved words are written in lowercase. TRUE or FALSE?

719


The number of bytes of storage occupied by short, int and long are a) 2, 2 and 4 b) 2, 4 and 4 c) 4, 4 and 4 d) none

765


What is pointer to pointer in c with example?

549


what are the 10 different models of writing an addition program in C language?

1439


Why does everyone say not to use gets?

610


Why clrscr is used after variable declaration?

1041


a function gets called when the function name is followed by a a) semicolon (;) b) period(.) c) ! d) none of the above

873