#include<stdio.h>
int main(){
int i=10;
int *ptr=&i;
*ptr=(int *)20;
printf("%d",i);
return 0;
}
Output: 20
can anyone explain how came the output is 20
No Answer is Posted For this Question
Be the First to Post Answer
What are two dimensional arrays alternatively called as?
write a program to swap two numbers without using temporary variable?
What is n in c?
Write a program that takes a 3 digit number n and finds out whether the number 2^n + 1 is prime, or if it is not prime find out its factors
what are the advantages of a macro over a function?
What is floating point exception error? And what are different types of errors occur during compile time and run time? why they occur?
What is static and volatile in c?
can we print any string without using terminator?
Is there any algorithm to search a string in link list in the minimum time?(please do not suggest the usual method of traversing the link list)
Write a program of prime number using recursion.
In c language can we compile a program without main() function?
why return type of main is not necessary in linux