How to change constant values?
Answers were Sorted based on User's Feedback
Answer / udit
const int var=10;
*(int *)&var=20;
this syntex change the constat value
Is This Answer Correct ? | 15 Yes | 10 No |
Answer / asif karim
#include <stdio.h>
#include<iostream>
using namespace std;
void main()
{
const int var=10;
int a;
a=*(int* )& var=20;
cout<<a;
}
Is This Answer Correct ? | 3 Yes | 10 No |
Explain register storage specifier.
What are advantages of c++?
Can we use pointers in c++?
When do we run a shell in the unix system?
When should you use multiple inheritance?
Explain polymorphism?
Why was c++ created?
Function can be overloaded based on the parameter which is a value or a reference. Explain if the statement is true.
What is an opaque pointer?
What kind of jobs can I get with c++?
Why is c++ called oops?
Why do we use pointers in c++?