How to access or modify the const variable in c ?
Answer Posted / mr.x
int main()
{
const volatile int no=10;
int *ptr;
ptr=(int *)&no;
*ptr=30;
printf("%d %d",no,*ptr);
return 0;
}
| Is This Answer Correct ? | 2 Yes | 0 No |
Post New Answer View All Answers
Explain how do I determine whether a character is numeric, alphabetic, and so on?
How can you tell whether a program was compiled using c versus c++?
write a c program to calculate sum of digits till it reduces to a single digit using recursion
What is c programing language?
Devise a program that inputs a 3 digit number n and finds out whether the number is prime or not. Find out its factors.
in programming languages a statement or part of a statement that specifies several different execution sequences a) constructs b) distructs c) executes d) none
What is difference between structure and union?
Why & is used in c?
What is the g value paradox?
What is formal argument?
1) write a program to generate 1st n fibonacci prime numbers using Nested if 2) write a program to generate twin prime numbers from m to n using nested if 3) write a program to check whether a given integer is a strong number or not using nested if 4) Write a program to generate prime factors of a given integer using nested if 5)write a program to generate prime numbers from m to n using nested if 6)write a program to generate perfect numbers from m to n using nested if 7)write a program to generate the pallindromes from m to n using neste if 8)write a program to generate armstrong numbers from m to n using nested if 9)write a program to generate strong numbers from m to n using nested if
What is Dynamic memory allocation in C? Name the dynamic allocation functions.
Is null always defined as 0(zero)?
Why we write conio h in c?
What is the difference between the = symbol and == symbol?