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 |
What is multithreading and what is its use?Whats are multithreading techniques used in C++?
Is C++ case sensitive a) False b) Depends on implementation c) True
What problems might the following macro bring to the application?
Can we use resume in error handling i.e. in the catch block
Explain the properties and principles of oop.
Explain queue. How it can be implemented?
Write any small program that will compile in "C" but not in "C++"
Why is main function important?
When should overload new operator on a global basis or a class basis?
What are the basics of local (auto) objects?
What is the this pointer?
How new/delete differs from malloc()/free?