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
how to make a scientific calculater ?
Explain what is dynamic data structure?
Tell us bitwise shift operators?
How can type-insensitive macros be created?
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
what are the advantages of a macro over a function?
What is wild pointer in c?
How to check whether string is a palindrome, WITHOUT USING STRING FUNCTIONS?
What is the purpose of main( ) in c language?
How can I read/write structures from/to data files?
What is getch?
Explain zero based addressing.
Why does everyone say not to use gets?
Why is python slower than c?
Why can’t constant values be used to define an array’s initial size?