#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 is sparse file?
Do you know pointer in c?
Write a program, where i have a grid with many cells, how many paths are possible from one point to other desired points.
What is the diffrent between while and do while statement ?
write a program to rearrange the array such way that all even elements should come first and next come odd
write a fuction for accepting and replacing lowercase letter to'Z' with out using inline function.
‘SAVEPOINT’ and ‘ROLLBACK’ is used in oracle database to secure the data comment. Give suitable examples of each with sql command.
What is the difference between union and structure in c?
Can a pointer be null?
Can a variable be both constant and volatile?
Is swift based on c?
What is a void * in c?