void main()
{
int *ptr;
ptr = (int *) 0x400 ;
printf("ptr=%d",ptr);
}
output?
Answer / koti
Ans is 1024.
Why because here ptr is pointing to integer address 0x400.this is hexadecimal address but you are printing decimal value.
The hexadecimal value is
........0000 0100 0000 0000
2 power10 =1024.
| Is This Answer Correct ? | 1 Yes | 0 No |
What is struct node in c?
What language is c written?
Why does the call char scanf work?
Write a program that will read the input of any number of digits n in a row of shafh showing the breakdown of the printing and printing figures by the recursive function.
Explain what is wrong in this statement?
how to swap four numbers without using fifth variable?
What is the right type to use for boolean values in c?
What is the output of below code? main() { static int a=5; printf("%3d",a--); if(a) main(); }
can any one provide me the notes of data structure for ignou cs-62 paper
What is the use of #include in c?
C program to find frequency of each character in a text file?
Differentiate call by value and call by reference?