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 to make a scientific calculater ?

1552


Explain what is dynamic data structure?

635


Tell us bitwise shift operators?

586


How can type-insensitive macros be created?

684


main(){char *str;scanf("%s",str);printf("%s",str); }The error in the above program is: a) Variable 'str' is not initialised b) Format control for a string is not %s c) Parameter to scanf is passed by value. It should be an address d) none

712






what are the advantages of a macro over a function?

632


What is wild pointer in c?

592


How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?

15475


What is the purpose of main( ) in c language?

607


How can I read/write structures from/to data files?

539


What is getch?

622


Explain zero based addressing.

595


Why does everyone say not to use gets?

597


Why is python slower than c?

591


Why can’t constant values be used to define an array’s initial size?

822