void main()
{
int *ptr;
ptr = (int *) 0x400 ;
printf("ptr=%d",ptr);
}
output?
Answer Posted / 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 |
Post New Answer View All Answers
Explain the difference between getch() and getche() in c?
If errno contains a nonzero number, is there an error?
Describe the complexity of Binary search, Quicksort and various other sorting and searching techniques..
When do you not use the keyword 'return' when defining a function a) Always b) Never c) When the function returns void d) dfd
What is s in c?
What are the loops in c?
When is a null pointer used?
what is the diffrenet bettwen HTTP and internet protocol
Write a C program in Fibonacci series.
Are comments included during the compilation stage and placed in the EXE file as well?
Explain how can I prevent another program from modifying part of a file that I am modifying?
How do you initialize pointer variables?
How can I write a function analogous to scanf?
Why c is called procedure oriented language?
What is the difference between call by value and call by reference in c?