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 meant by entry controlled loop? What all C++ loops are exit controlled?
what is the size of a class which contains no member variables but has two objects??? is it 1 or 2??
How many lines of code you have written for a single program?
Difference between pass by value and pass by reference?
Explain operator overloading.
Describe the advantages of operator overloading?
Write about the stack unwinding?
What is stack unwinding?
Write a program which uses functions like strcmp(), strcpy()? etc
Write a single instruction that will store an EVEN random integer between 54 and 212 inclusive in the variable myran. (NOTE only generate EVEN random numbers)
What is called array?
Which programming language's unsatisfactory performance led to the discovery of c++?